You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

v1_json.tmpl 207 kB

Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398
  1. {
  2. "consumes": [
  3. "application/json",
  4. "text/plain"
  5. ],
  6. "produces": [
  7. "application/json",
  8. "text/html"
  9. ],
  10. "schemes": [
  11. "http",
  12. "https"
  13. ],
  14. "swagger": "2.0",
  15. "info": {
  16. "description": "This documentation describes the Gitea API.",
  17. "title": "Gitea API.",
  18. "license": {
  19. "name": "MIT",
  20. "url": "http://opensource.org/licenses/MIT"
  21. },
  22. "version": "1.1.1"
  23. },
  24. "basePath": "{{AppSubUrl}}/api/v1",
  25. "paths": {
  26. "/admin/users": {
  27. "post": {
  28. "consumes": [
  29. "application/json"
  30. ],
  31. "produces": [
  32. "application/json"
  33. ],
  34. "tags": [
  35. "admin"
  36. ],
  37. "summary": "Create a user",
  38. "operationId": "adminCreateUser",
  39. "parameters": [
  40. {
  41. "name": "body",
  42. "in": "body",
  43. "schema": {
  44. "$ref": "#/definitions/CreateUserOption"
  45. }
  46. }
  47. ],
  48. "responses": {
  49. "201": {
  50. "$ref": "#/responses/User"
  51. },
  52. "403": {
  53. "$ref": "#/responses/forbidden"
  54. },
  55. "422": {
  56. "$ref": "#/responses/validationError"
  57. }
  58. }
  59. }
  60. },
  61. "/admin/users/{username}": {
  62. "delete": {
  63. "produces": [
  64. "application/json"
  65. ],
  66. "tags": [
  67. "admin"
  68. ],
  69. "summary": "Delete a user",
  70. "operationId": "adminDeleteUser",
  71. "parameters": [
  72. {
  73. "type": "string",
  74. "description": "username of user to delete",
  75. "name": "username",
  76. "in": "path",
  77. "required": true
  78. }
  79. ],
  80. "responses": {
  81. "204": {
  82. "$ref": "#/responses/empty"
  83. },
  84. "403": {
  85. "$ref": "#/responses/forbidden"
  86. },
  87. "422": {
  88. "$ref": "#/responses/validationError"
  89. }
  90. }
  91. },
  92. "patch": {
  93. "consumes": [
  94. "application/json"
  95. ],
  96. "produces": [
  97. "application/json"
  98. ],
  99. "tags": [
  100. "admin"
  101. ],
  102. "summary": "Edit an existing user",
  103. "operationId": "adminEditUser",
  104. "parameters": [
  105. {
  106. "type": "string",
  107. "description": "username of user to edit",
  108. "name": "username",
  109. "in": "path",
  110. "required": true
  111. },
  112. {
  113. "name": "body",
  114. "in": "body",
  115. "schema": {
  116. "$ref": "#/definitions/EditUserOption"
  117. }
  118. }
  119. ],
  120. "responses": {
  121. "200": {
  122. "$ref": "#/responses/User"
  123. },
  124. "403": {
  125. "$ref": "#/responses/forbidden"
  126. },
  127. "422": {
  128. "$ref": "#/responses/validationError"
  129. }
  130. }
  131. }
  132. },
  133. "/admin/users/{username}/keys": {
  134. "post": {
  135. "consumes": [
  136. "application/json"
  137. ],
  138. "produces": [
  139. "application/json"
  140. ],
  141. "tags": [
  142. "admin"
  143. ],
  144. "summary": "Add a public key on behalf of a user",
  145. "operationId": "adminCreatePublicKey",
  146. "parameters": [
  147. {
  148. "type": "string",
  149. "description": "username of the user",
  150. "name": "username",
  151. "in": "path",
  152. "required": true
  153. },
  154. {
  155. "name": "key",
  156. "in": "body",
  157. "schema": {
  158. "$ref": "#/definitions/CreateKeyOption"
  159. }
  160. }
  161. ],
  162. "responses": {
  163. "201": {
  164. "$ref": "#/responses/PublicKey"
  165. },
  166. "403": {
  167. "$ref": "#/responses/forbidden"
  168. },
  169. "422": {
  170. "$ref": "#/responses/validationError"
  171. }
  172. }
  173. }
  174. },
  175. "/admin/users/{username}/keys/{id}": {
  176. "delete": {
  177. "produces": [
  178. "application/json"
  179. ],
  180. "tags": [
  181. "admin"
  182. ],
  183. "summary": "Delete a user's public key",
  184. "operationId": "adminDeleteUserPublicKey",
  185. "parameters": [
  186. {
  187. "type": "string",
  188. "description": "username of user",
  189. "name": "username",
  190. "in": "path",
  191. "required": true
  192. },
  193. {
  194. "type": "integer",
  195. "format": "int64",
  196. "description": "id of the key to delete",
  197. "name": "id",
  198. "in": "path",
  199. "required": true
  200. }
  201. ],
  202. "responses": {
  203. "204": {
  204. "$ref": "#/responses/empty"
  205. },
  206. "403": {
  207. "$ref": "#/responses/forbidden"
  208. },
  209. "404": {
  210. "$ref": "#/responses/notFound"
  211. }
  212. }
  213. }
  214. },
  215. "/admin/users/{username}/orgs": {
  216. "post": {
  217. "consumes": [
  218. "application/json"
  219. ],
  220. "produces": [
  221. "application/json"
  222. ],
  223. "tags": [
  224. "admin"
  225. ],
  226. "summary": "Create an organization",
  227. "operationId": "adminCreateOrg",
  228. "parameters": [
  229. {
  230. "type": "string",
  231. "description": "username of the user that will own the created organization",
  232. "name": "username",
  233. "in": "path",
  234. "required": true
  235. },
  236. {
  237. "name": "organization",
  238. "in": "body",
  239. "required": true,
  240. "schema": {
  241. "$ref": "#/definitions/CreateOrgOption"
  242. }
  243. }
  244. ],
  245. "responses": {
  246. "201": {
  247. "$ref": "#/responses/Organization"
  248. },
  249. "403": {
  250. "$ref": "#/responses/forbidden"
  251. },
  252. "422": {
  253. "$ref": "#/responses/validationError"
  254. }
  255. }
  256. }
  257. },
  258. "/admin/users/{username}/repos": {
  259. "post": {
  260. "consumes": [
  261. "application/json"
  262. ],
  263. "produces": [
  264. "application/json"
  265. ],
  266. "tags": [
  267. "admin"
  268. ],
  269. "summary": "Create a repository on behalf a user",
  270. "operationId": "adminCreateRepo",
  271. "parameters": [
  272. {
  273. "type": "string",
  274. "description": "username of the user. This user will own the created repository",
  275. "name": "username",
  276. "in": "path",
  277. "required": true
  278. },
  279. {
  280. "name": "repository",
  281. "in": "body",
  282. "required": true,
  283. "schema": {
  284. "$ref": "#/definitions/CreateRepoOption"
  285. }
  286. }
  287. ],
  288. "responses": {
  289. "201": {
  290. "$ref": "#/responses/Repository"
  291. },
  292. "403": {
  293. "$ref": "#/responses/forbidden"
  294. },
  295. "422": {
  296. "$ref": "#/responses/validationError"
  297. }
  298. }
  299. }
  300. },
  301. "/markdown": {
  302. "post": {
  303. "consumes": [
  304. "application/json"
  305. ],
  306. "produces": [
  307. "text/html"
  308. ],
  309. "tags": [
  310. "miscellaneous"
  311. ],
  312. "summary": "Render a markdown document as HTML",
  313. "operationId": "renderMarkdown",
  314. "parameters": [
  315. {
  316. "name": "body",
  317. "in": "body",
  318. "schema": {
  319. "$ref": "#/definitions/MarkdownOption"
  320. }
  321. }
  322. ],
  323. "responses": {
  324. "200": {
  325. "$ref": "#/responses/MarkdownRender"
  326. },
  327. "422": {
  328. "$ref": "#/responses/validationError"
  329. }
  330. }
  331. }
  332. },
  333. "/markdown/raw": {
  334. "post": {
  335. "consumes": [
  336. "text/plain"
  337. ],
  338. "produces": [
  339. "text/html"
  340. ],
  341. "tags": [
  342. "miscellaneous"
  343. ],
  344. "summary": "Render raw markdown as HTML",
  345. "operationId": "renderMarkdownRaw",
  346. "parameters": [
  347. {
  348. "description": "Request body to render",
  349. "name": "body",
  350. "in": "body",
  351. "required": true,
  352. "schema": {
  353. "type": "string"
  354. }
  355. }
  356. ],
  357. "responses": {
  358. "200": {
  359. "$ref": "#/responses/MarkdownRender"
  360. },
  361. "422": {
  362. "$ref": "#/responses/validationError"
  363. }
  364. }
  365. }
  366. },
  367. "/org/{org}/repos": {
  368. "post": {
  369. "consumes": [
  370. "application/json"
  371. ],
  372. "produces": [
  373. "application/json"
  374. ],
  375. "tags": [
  376. "organization"
  377. ],
  378. "summary": "Create a repository in an organization",
  379. "operationId": "createOrgRepo",
  380. "parameters": [
  381. {
  382. "type": "string",
  383. "description": "name of organization",
  384. "name": "org",
  385. "in": "path",
  386. "required": true
  387. },
  388. {
  389. "name": "body",
  390. "in": "body",
  391. "schema": {
  392. "$ref": "#/definitions/CreateRepoOption"
  393. }
  394. }
  395. ],
  396. "responses": {
  397. "201": {
  398. "$ref": "#/responses/Repository"
  399. },
  400. "403": {
  401. "$ref": "#/responses/forbidden"
  402. },
  403. "422": {
  404. "$ref": "#/responses/validationError"
  405. }
  406. }
  407. }
  408. },
  409. "/orgs": {
  410. "post": {
  411. "consumes": [
  412. "application/json"
  413. ],
  414. "produces": [
  415. "application/json"
  416. ],
  417. "tags": [
  418. "organization"
  419. ],
  420. "summary": "Create an organization",
  421. "operationId": "orgCreate",
  422. "parameters": [
  423. {
  424. "name": "organization",
  425. "in": "body",
  426. "required": true,
  427. "schema": {
  428. "$ref": "#/definitions/CreateOrgOption"
  429. }
  430. }
  431. ],
  432. "responses": {
  433. "201": {
  434. "$ref": "#/responses/Organization"
  435. },
  436. "403": {
  437. "$ref": "#/responses/forbidden"
  438. },
  439. "422": {
  440. "$ref": "#/responses/validationError"
  441. }
  442. }
  443. }
  444. },
  445. "/orgs/{org}": {
  446. "get": {
  447. "produces": [
  448. "application/json"
  449. ],
  450. "tags": [
  451. "organization"
  452. ],
  453. "summary": "Get an organization",
  454. "operationId": "orgGet",
  455. "parameters": [
  456. {
  457. "type": "string",
  458. "description": "name of the organization to get",
  459. "name": "org",
  460. "in": "path",
  461. "required": true
  462. }
  463. ],
  464. "responses": {
  465. "200": {
  466. "$ref": "#/responses/Organization"
  467. }
  468. }
  469. },
  470. "patch": {
  471. "consumes": [
  472. "application/json"
  473. ],
  474. "produces": [
  475. "application/json"
  476. ],
  477. "tags": [
  478. "organization"
  479. ],
  480. "summary": "Edit an organization",
  481. "operationId": "orgEdit",
  482. "parameters": [
  483. {
  484. "type": "string",
  485. "description": "name of the organization to edit",
  486. "name": "org",
  487. "in": "path",
  488. "required": true
  489. },
  490. {
  491. "name": "body",
  492. "in": "body",
  493. "schema": {
  494. "$ref": "#/definitions/EditOrgOption"
  495. }
  496. }
  497. ],
  498. "responses": {
  499. "200": {
  500. "$ref": "#/responses/Organization"
  501. }
  502. }
  503. }
  504. },
  505. "/orgs/{org}/hooks": {
  506. "get": {
  507. "produces": [
  508. "application/json"
  509. ],
  510. "tags": [
  511. "organization"
  512. ],
  513. "summary": "List an organization's webhooks",
  514. "operationId": "orgListHooks",
  515. "parameters": [
  516. {
  517. "type": "string",
  518. "description": "name of the organization",
  519. "name": "org",
  520. "in": "path",
  521. "required": true
  522. }
  523. ],
  524. "responses": {
  525. "200": {
  526. "$ref": "#/responses/HookList"
  527. }
  528. }
  529. }
  530. },
  531. "/orgs/{org}/hooks/": {
  532. "post": {
  533. "consumes": [
  534. "application/json"
  535. ],
  536. "produces": [
  537. "application/json"
  538. ],
  539. "tags": [
  540. "organization"
  541. ],
  542. "summary": "Create a hook",
  543. "operationId": "orgCreateHook",
  544. "parameters": [
  545. {
  546. "type": "string",
  547. "description": "name of the organization",
  548. "name": "org",
  549. "in": "path",
  550. "required": true
  551. },
  552. {
  553. "name": "body",
  554. "in": "body",
  555. "required": true,
  556. "schema": {
  557. "$ref": "#/definitions/CreateHookOption"
  558. }
  559. }
  560. ],
  561. "responses": {
  562. "201": {
  563. "$ref": "#/responses/Hook"
  564. }
  565. }
  566. }
  567. },
  568. "/orgs/{org}/hooks/{id}": {
  569. "get": {
  570. "produces": [
  571. "application/json"
  572. ],
  573. "tags": [
  574. "organization"
  575. ],
  576. "summary": "Get a hook",
  577. "operationId": "orgGetHook",
  578. "parameters": [
  579. {
  580. "type": "string",
  581. "description": "name of the organization",
  582. "name": "org",
  583. "in": "path",
  584. "required": true
  585. },
  586. {
  587. "type": "integer",
  588. "format": "int64",
  589. "description": "id of the hook to get",
  590. "name": "id",
  591. "in": "path",
  592. "required": true
  593. }
  594. ],
  595. "responses": {
  596. "200": {
  597. "$ref": "#/responses/Hook"
  598. }
  599. }
  600. },
  601. "delete": {
  602. "produces": [
  603. "application/json"
  604. ],
  605. "tags": [
  606. "organization"
  607. ],
  608. "summary": "Delete a hook",
  609. "operationId": "orgDeleteHook",
  610. "parameters": [
  611. {
  612. "type": "string",
  613. "description": "name of the organization",
  614. "name": "org",
  615. "in": "path",
  616. "required": true
  617. },
  618. {
  619. "type": "integer",
  620. "format": "int64",
  621. "description": "id of the hook to delete",
  622. "name": "id",
  623. "in": "path",
  624. "required": true
  625. }
  626. ],
  627. "responses": {
  628. "204": {
  629. "$ref": "#/responses/empty"
  630. }
  631. }
  632. },
  633. "patch": {
  634. "consumes": [
  635. "application/json"
  636. ],
  637. "produces": [
  638. "application/json"
  639. ],
  640. "tags": [
  641. "organization"
  642. ],
  643. "summary": "Update a hook",
  644. "operationId": "orgEditHook",
  645. "parameters": [
  646. {
  647. "type": "string",
  648. "description": "name of the organization",
  649. "name": "org",
  650. "in": "path",
  651. "required": true
  652. },
  653. {
  654. "type": "integer",
  655. "format": "int64",
  656. "description": "id of the hook to update",
  657. "name": "id",
  658. "in": "path",
  659. "required": true
  660. },
  661. {
  662. "name": "body",
  663. "in": "body",
  664. "schema": {
  665. "$ref": "#/definitions/EditHookOption"
  666. }
  667. }
  668. ],
  669. "responses": {
  670. "200": {
  671. "$ref": "#/responses/Hook"
  672. }
  673. }
  674. }
  675. },
  676. "/orgs/{org}/members": {
  677. "get": {
  678. "produces": [
  679. "application/json"
  680. ],
  681. "tags": [
  682. "organization"
  683. ],
  684. "summary": "List an organization's members",
  685. "operationId": "orgListMembers",
  686. "parameters": [
  687. {
  688. "type": "string",
  689. "description": "name of the organization",
  690. "name": "org",
  691. "in": "path",
  692. "required": true
  693. }
  694. ],
  695. "responses": {
  696. "200": {
  697. "$ref": "#/responses/UserList"
  698. }
  699. }
  700. }
  701. },
  702. "/orgs/{org}/members/{username}": {
  703. "get": {
  704. "tags": [
  705. "organization"
  706. ],
  707. "summary": "Check if a user is a member of an organization",
  708. "operationId": "orgIsMember",
  709. "parameters": [
  710. {
  711. "type": "string",
  712. "description": "name of the organization",
  713. "name": "org",
  714. "in": "path",
  715. "required": true
  716. },
  717. {
  718. "type": "string",
  719. "description": "username of the user",
  720. "name": "username",
  721. "in": "path",
  722. "required": true
  723. }
  724. ],
  725. "responses": {
  726. "204": {
  727. "description": "user is a member"
  728. },
  729. "404": {
  730. "description": "user is not a member"
  731. }
  732. }
  733. },
  734. "delete": {
  735. "produces": [
  736. "application/json"
  737. ],
  738. "tags": [
  739. "organization"
  740. ],
  741. "summary": "Remove a member from an organization",
  742. "operationId": "orgDeleteMember",
  743. "parameters": [
  744. {
  745. "type": "string",
  746. "description": "name of the organization",
  747. "name": "org",
  748. "in": "path",
  749. "required": true
  750. },
  751. {
  752. "type": "string",
  753. "description": "username of the user",
  754. "name": "username",
  755. "in": "path",
  756. "required": true
  757. }
  758. ],
  759. "responses": {
  760. "204": {
  761. "description": "member removed"
  762. }
  763. }
  764. }
  765. },
  766. "/orgs/{org}/public_members": {
  767. "get": {
  768. "produces": [
  769. "application/json"
  770. ],
  771. "tags": [
  772. "organization"
  773. ],
  774. "summary": "List an organization's public members",
  775. "operationId": "orgListPublicMembers",
  776. "parameters": [
  777. {
  778. "type": "string",
  779. "description": "name of the organization",
  780. "name": "org",
  781. "in": "path",
  782. "required": true
  783. }
  784. ],
  785. "responses": {
  786. "200": {
  787. "$ref": "#/responses/UserList"
  788. }
  789. }
  790. }
  791. },
  792. "/orgs/{org}/public_members/{username}": {
  793. "get": {
  794. "tags": [
  795. "organization"
  796. ],
  797. "summary": "Check if a user is a public member of an organization",
  798. "operationId": "orgIsPublicMember",
  799. "parameters": [
  800. {
  801. "type": "string",
  802. "description": "name of the organization",
  803. "name": "org",
  804. "in": "path",
  805. "required": true
  806. },
  807. {
  808. "type": "string",
  809. "description": "username of the user",
  810. "name": "username",
  811. "in": "path",
  812. "required": true
  813. }
  814. ],
  815. "responses": {
  816. "204": {
  817. "description": "user is a public member"
  818. },
  819. "404": {
  820. "description": "user is not a public member"
  821. }
  822. }
  823. },
  824. "put": {
  825. "produces": [
  826. "application/json"
  827. ],
  828. "tags": [
  829. "organization"
  830. ],
  831. "summary": "Publicize a user's membership",
  832. "operationId": "orgPublicizeMember",
  833. "parameters": [
  834. {
  835. "type": "string",
  836. "description": "name of the organization",
  837. "name": "org",
  838. "in": "path",
  839. "required": true
  840. },
  841. {
  842. "type": "string",
  843. "description": "username of the user",
  844. "name": "username",
  845. "in": "path",
  846. "required": true
  847. }
  848. ],
  849. "responses": {
  850. "204": {
  851. "description": "membership publicized"
  852. }
  853. }
  854. },
  855. "delete": {
  856. "produces": [
  857. "application/json"
  858. ],
  859. "tags": [
  860. "organization"
  861. ],
  862. "summary": "Conceal a user's membership",
  863. "operationId": "orgConcealMember",
  864. "parameters": [
  865. {
  866. "type": "string",
  867. "description": "name of the organization",
  868. "name": "org",
  869. "in": "path",
  870. "required": true
  871. },
  872. {
  873. "type": "string",
  874. "description": "username of the user",
  875. "name": "username",
  876. "in": "path",
  877. "required": true
  878. }
  879. ],
  880. "responses": {
  881. "204": {
  882. "$ref": "#/responses/empty"
  883. }
  884. }
  885. }
  886. },
  887. "/orgs/{org}/repos": {
  888. "get": {
  889. "produces": [
  890. "application/json"
  891. ],
  892. "tags": [
  893. "organization"
  894. ],
  895. "summary": "List an organization's repos",
  896. "operationId": "orgListRepos",
  897. "parameters": [
  898. {
  899. "type": "string",
  900. "description": "name of the organization",
  901. "name": "org",
  902. "in": "path",
  903. "required": true
  904. }
  905. ],
  906. "responses": {
  907. "200": {
  908. "$ref": "#/responses/RepositoryList"
  909. }
  910. }
  911. }
  912. },
  913. "/orgs/{org}/teams": {
  914. "get": {
  915. "produces": [
  916. "application/json"
  917. ],
  918. "tags": [
  919. "organization"
  920. ],
  921. "summary": "List an organization's teams",
  922. "operationId": "orgListTeams",
  923. "parameters": [
  924. {
  925. "type": "string",
  926. "description": "name of the organization",
  927. "name": "org",
  928. "in": "path",
  929. "required": true
  930. }
  931. ],
  932. "responses": {
  933. "200": {
  934. "$ref": "#/responses/TeamList"
  935. }
  936. }
  937. },
  938. "post": {
  939. "consumes": [
  940. "application/json"
  941. ],
  942. "produces": [
  943. "application/json"
  944. ],
  945. "tags": [
  946. "organization"
  947. ],
  948. "summary": "Create a team",
  949. "operationId": "orgCreateTeam",
  950. "parameters": [
  951. {
  952. "type": "string",
  953. "description": "name of the organization",
  954. "name": "org",
  955. "in": "path",
  956. "required": true
  957. },
  958. {
  959. "name": "body",
  960. "in": "body",
  961. "schema": {
  962. "$ref": "#/definitions/CreateTeamOption"
  963. }
  964. }
  965. ],
  966. "responses": {
  967. "201": {
  968. "$ref": "#/responses/Team"
  969. }
  970. }
  971. }
  972. },
  973. "/repos/migrate": {
  974. "post": {
  975. "consumes": [
  976. "application/json"
  977. ],
  978. "produces": [
  979. "application/json"
  980. ],
  981. "tags": [
  982. "repository"
  983. ],
  984. "summary": "Migrate a remote git repository",
  985. "operationId": "repoMigrate",
  986. "parameters": [
  987. {
  988. "name": "body",
  989. "in": "body",
  990. "schema": {
  991. "$ref": "#/definitions/MigrateRepoForm"
  992. }
  993. }
  994. ],
  995. "responses": {
  996. "201": {
  997. "$ref": "#/responses/Repository"
  998. }
  999. }
  1000. }
  1001. },
  1002. "/repos/search": {
  1003. "get": {
  1004. "produces": [
  1005. "application/json"
  1006. ],
  1007. "tags": [
  1008. "repository"
  1009. ],
  1010. "summary": "Search for repositories",
  1011. "operationId": "repoSearch",
  1012. "parameters": [
  1013. {
  1014. "type": "string",
  1015. "description": "keyword",
  1016. "name": "q",
  1017. "in": "query"
  1018. },
  1019. {
  1020. "type": "integer",
  1021. "format": "int64",
  1022. "description": "search only for repos that the user with the given id owns or contributes to",
  1023. "name": "uid",
  1024. "in": "query"
  1025. },
  1026. {
  1027. "type": "integer",
  1028. "description": "page number of results to return (1-based)",
  1029. "name": "page",
  1030. "in": "query"
  1031. },
  1032. {
  1033. "type": "integer",
  1034. "description": "page size of results, maximum page size is 50",
  1035. "name": "limit",
  1036. "in": "query"
  1037. },
  1038. {
  1039. "type": "string",
  1040. "description": "type of repository to search for. Supported values are \"fork\", \"source\", \"mirror\" and \"collaborative\"",
  1041. "name": "mode",
  1042. "in": "query"
  1043. },
  1044. {
  1045. "type": "boolean",
  1046. "description": "if `uid` is given, search only for repos that the user owns",
  1047. "name": "exclusive",
  1048. "in": "query"
  1049. },
  1050. {
  1051. "type": "string",
  1052. "description": "sort repos by attribute. Supported values are \"alpha\", \"created\", \"updated\", \"size\", and \"id\". Default is \"alpha\"",
  1053. "name": "sort",
  1054. "in": "query"
  1055. },
  1056. {
  1057. "type": "string",
  1058. "description": "sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\", ignored if \"sort\" is not specified.",
  1059. "name": "order",
  1060. "in": "query"
  1061. }
  1062. ],
  1063. "responses": {
  1064. "200": {
  1065. "$ref": "#/responses/SearchResults"
  1066. },
  1067. "422": {
  1068. "$ref": "#/responses/validationError"
  1069. }
  1070. }
  1071. }
  1072. },
  1073. "/repos/{owner}/{repo}": {
  1074. "get": {
  1075. "produces": [
  1076. "application/json"
  1077. ],
  1078. "tags": [
  1079. "repository"
  1080. ],
  1081. "summary": "Get a repository",
  1082. "operationId": "repoGet",
  1083. "parameters": [
  1084. {
  1085. "type": "string",
  1086. "description": "owner of the repo",
  1087. "name": "owner",
  1088. "in": "path",
  1089. "required": true
  1090. },
  1091. {
  1092. "type": "string",
  1093. "description": "name of the repo",
  1094. "name": "repo",
  1095. "in": "path",
  1096. "required": true
  1097. }
  1098. ],
  1099. "responses": {
  1100. "200": {
  1101. "$ref": "#/responses/Repository"
  1102. }
  1103. }
  1104. },
  1105. "delete": {
  1106. "produces": [
  1107. "application/json"
  1108. ],
  1109. "tags": [
  1110. "repository"
  1111. ],
  1112. "summary": "Delete a repository",
  1113. "operationId": "repoDelete",
  1114. "parameters": [
  1115. {
  1116. "type": "string",
  1117. "description": "owner of the repo to delete",
  1118. "name": "owner",
  1119. "in": "path",
  1120. "required": true
  1121. },
  1122. {
  1123. "type": "string",
  1124. "description": "name of the repo to delete",
  1125. "name": "repo",
  1126. "in": "path",
  1127. "required": true
  1128. }
  1129. ],
  1130. "responses": {
  1131. "204": {
  1132. "$ref": "#/responses/empty"
  1133. },
  1134. "403": {
  1135. "$ref": "#/responses/forbidden"
  1136. }
  1137. }
  1138. }
  1139. },
  1140. "/repos/{owner}/{repo}/archive/{archive}": {
  1141. "get": {
  1142. "produces": [
  1143. "application/json"
  1144. ],
  1145. "tags": [
  1146. "repository"
  1147. ],
  1148. "summary": "Get an archive of a repository",
  1149. "operationId": "repoGetArchive",
  1150. "parameters": [
  1151. {
  1152. "type": "string",
  1153. "description": "owner of the repo",
  1154. "name": "owner",
  1155. "in": "path",
  1156. "required": true
  1157. },
  1158. {
  1159. "type": "string",
  1160. "description": "name of the repo",
  1161. "name": "repo",
  1162. "in": "path",
  1163. "required": true
  1164. },
  1165. {
  1166. "type": "string",
  1167. "description": "archive to download, consisting of a git reference and archive",
  1168. "name": "archive",
  1169. "in": "path",
  1170. "required": true
  1171. }
  1172. ],
  1173. "responses": {
  1174. "200": {
  1175. "description": "success"
  1176. }
  1177. }
  1178. }
  1179. },
  1180. "/repos/{owner}/{repo}/branches": {
  1181. "get": {
  1182. "produces": [
  1183. "application/json"
  1184. ],
  1185. "tags": [
  1186. "repository"
  1187. ],
  1188. "summary": "List a repository's branches",
  1189. "operationId": "repoListBranches",
  1190. "parameters": [
  1191. {
  1192. "type": "string",
  1193. "description": "owner of the repo",
  1194. "name": "owner",
  1195. "in": "path",
  1196. "required": true
  1197. },
  1198. {
  1199. "type": "string",
  1200. "description": "name of the repo",
  1201. "name": "repo",
  1202. "in": "path",
  1203. "required": true
  1204. }
  1205. ],
  1206. "responses": {
  1207. "200": {
  1208. "$ref": "#/responses/BranchList"
  1209. }
  1210. }
  1211. }
  1212. },
  1213. "/repos/{owner}/{repo}/branches/{branch}": {
  1214. "get": {
  1215. "produces": [
  1216. "application/json"
  1217. ],
  1218. "tags": [
  1219. "repository"
  1220. ],
  1221. "summary": "Retrieve a specific branch from a repository",
  1222. "operationId": "repoGetBranch",
  1223. "parameters": [
  1224. {
  1225. "type": "string",
  1226. "description": "owner of the repo",
  1227. "name": "owner",
  1228. "in": "path",
  1229. "required": true
  1230. },
  1231. {
  1232. "type": "string",
  1233. "description": "name of the repo",
  1234. "name": "repo",
  1235. "in": "path",
  1236. "required": true
  1237. },
  1238. {
  1239. "type": "string",
  1240. "description": "branch to get",
  1241. "name": "branch",
  1242. "in": "path",
  1243. "required": true
  1244. }
  1245. ],
  1246. "responses": {
  1247. "200": {
  1248. "$ref": "#/responses/Branch"
  1249. }
  1250. }
  1251. }
  1252. },
  1253. "/repos/{owner}/{repo}/collaborators": {
  1254. "get": {
  1255. "produces": [
  1256. "application/json"
  1257. ],
  1258. "tags": [
  1259. "repository"
  1260. ],
  1261. "summary": "List a repository's collaborators",
  1262. "operationId": "repoListCollaborators",
  1263. "parameters": [
  1264. {
  1265. "type": "string",
  1266. "description": "owner of the repo",
  1267. "name": "owner",
  1268. "in": "path",
  1269. "required": true
  1270. },
  1271. {
  1272. "type": "string",
  1273. "description": "name of the repo",
  1274. "name": "repo",
  1275. "in": "path",
  1276. "required": true
  1277. }
  1278. ],
  1279. "responses": {
  1280. "200": {
  1281. "$ref": "#/responses/UserList"
  1282. }
  1283. }
  1284. }
  1285. },
  1286. "/repos/{owner}/{repo}/collaborators/{collaborator}": {
  1287. "get": {
  1288. "produces": [
  1289. "application/json"
  1290. ],
  1291. "tags": [
  1292. "repository"
  1293. ],
  1294. "summary": "Check if a user is a collaborator of a repository",
  1295. "operationId": "repoCheckCollaborator",
  1296. "parameters": [
  1297. {
  1298. "type": "string",
  1299. "description": "owner of the repo",
  1300. "name": "owner",
  1301. "in": "path",
  1302. "required": true
  1303. },
  1304. {
  1305. "type": "string",
  1306. "description": "name of the repo",
  1307. "name": "repo",
  1308. "in": "path",
  1309. "required": true
  1310. },
  1311. {
  1312. "type": "string",
  1313. "description": "username of the collaborator",
  1314. "name": "collaborator",
  1315. "in": "path",
  1316. "required": true
  1317. }
  1318. ],
  1319. "responses": {
  1320. "204": {
  1321. "$ref": "#/responses/empty"
  1322. },
  1323. "404": {
  1324. "$ref": "#/responses/empty"
  1325. }
  1326. }
  1327. },
  1328. "put": {
  1329. "produces": [
  1330. "application/json"
  1331. ],
  1332. "tags": [
  1333. "repository"
  1334. ],
  1335. "summary": "Add a collaborator to a repository",
  1336. "operationId": "repoAddCollaborator",
  1337. "parameters": [
  1338. {
  1339. "type": "string",
  1340. "description": "owner of the repo",
  1341. "name": "owner",
  1342. "in": "path",
  1343. "required": true
  1344. },
  1345. {
  1346. "type": "string",
  1347. "description": "name of the repo",
  1348. "name": "repo",
  1349. "in": "path",
  1350. "required": true
  1351. },
  1352. {
  1353. "type": "string",
  1354. "description": "username of the collaborator to add",
  1355. "name": "collaborator",
  1356. "in": "path",
  1357. "required": true
  1358. },
  1359. {
  1360. "name": "body",
  1361. "in": "body",
  1362. "schema": {
  1363. "$ref": "#/definitions/AddCollaboratorOption"
  1364. }
  1365. }
  1366. ],
  1367. "responses": {
  1368. "204": {
  1369. "$ref": "#/responses/empty"
  1370. }
  1371. }
  1372. },
  1373. "delete": {
  1374. "produces": [
  1375. "application/json"
  1376. ],
  1377. "tags": [
  1378. "repository"
  1379. ],
  1380. "summary": "Delete a collaborator from a repository",
  1381. "operationId": "repoDeleteCollaborator",
  1382. "parameters": [
  1383. {
  1384. "type": "string",
  1385. "description": "owner of the repo",
  1386. "name": "owner",
  1387. "in": "path",
  1388. "required": true
  1389. },
  1390. {
  1391. "type": "string",
  1392. "description": "name of the repo",
  1393. "name": "repo",
  1394. "in": "path",
  1395. "required": true
  1396. },
  1397. {
  1398. "type": "string",
  1399. "description": "username of the collaborator to delete",
  1400. "name": "collaborator",
  1401. "in": "path",
  1402. "required": true
  1403. }
  1404. ],
  1405. "responses": {
  1406. "204": {
  1407. "$ref": "#/responses/empty"
  1408. }
  1409. }
  1410. }
  1411. },
  1412. "/repos/{owner}/{repo}/commits/{ref}/statuses": {
  1413. "get": {
  1414. "produces": [
  1415. "application/json"
  1416. ],
  1417. "tags": [
  1418. "repository"
  1419. ],
  1420. "summary": "Get a commit's combined status, by branch/tag/commit reference",
  1421. "operationId": "repoGetCombinedStatusByRef",
  1422. "parameters": [
  1423. {
  1424. "type": "string",
  1425. "description": "owner of the repo",
  1426. "name": "owner",
  1427. "in": "path",
  1428. "required": true
  1429. },
  1430. {
  1431. "type": "string",
  1432. "description": "name of the repo",
  1433. "name": "repo",
  1434. "in": "path",
  1435. "required": true
  1436. },
  1437. {
  1438. "type": "string",
  1439. "description": "name of branch/tag/commit",
  1440. "name": "ref",
  1441. "in": "path",
  1442. "required": true
  1443. }
  1444. ],
  1445. "responses": {
  1446. "200": {
  1447. "$ref": "#/responses/Status"
  1448. }
  1449. }
  1450. }
  1451. },
  1452. "/repos/{owner}/{repo}/editorconfig/{filepath}": {
  1453. "get": {
  1454. "produces": [
  1455. "application/json"
  1456. ],
  1457. "tags": [
  1458. "repository"
  1459. ],
  1460. "summary": "Get the EditorConfig definitions of a file in a repository",
  1461. "operationId": "repoGetEditorConfig",
  1462. "parameters": [
  1463. {
  1464. "type": "string",
  1465. "description": "owner of the repo",
  1466. "name": "owner",
  1467. "in": "path",
  1468. "required": true
  1469. },
  1470. {
  1471. "type": "string",
  1472. "description": "name of the repo",
  1473. "name": "repo",
  1474. "in": "path",
  1475. "required": true
  1476. },
  1477. {
  1478. "type": "string",
  1479. "description": "filepath of file to get",
  1480. "name": "filepath",
  1481. "in": "path",
  1482. "required": true
  1483. }
  1484. ],
  1485. "responses": {
  1486. "200": {
  1487. "description": "success"
  1488. }
  1489. }
  1490. }
  1491. },
  1492. "/repos/{owner}/{repo}/forks": {
  1493. "get": {
  1494. "produces": [
  1495. "application/json"
  1496. ],
  1497. "tags": [
  1498. "repository"
  1499. ],
  1500. "summary": "List a repository's forks",
  1501. "operationId": "listForks",
  1502. "parameters": [
  1503. {
  1504. "type": "string",
  1505. "description": "owner of the repo",
  1506. "name": "owner",
  1507. "in": "path",
  1508. "required": true
  1509. },
  1510. {
  1511. "type": "string",
  1512. "description": "name of the repo",
  1513. "name": "repo",
  1514. "in": "path",
  1515. "required": true
  1516. }
  1517. ],
  1518. "responses": {
  1519. "200": {
  1520. "$ref": "#/responses/RepositoryList"
  1521. }
  1522. }
  1523. },
  1524. "post": {
  1525. "produces": [
  1526. "application/json"
  1527. ],
  1528. "tags": [
  1529. "repository"
  1530. ],
  1531. "summary": "Fork a repository",
  1532. "operationId": "createFork",
  1533. "parameters": [
  1534. {
  1535. "type": "string",
  1536. "description": "owner of the repo to fork",
  1537. "name": "owner",
  1538. "in": "path",
  1539. "required": true
  1540. },
  1541. {
  1542. "type": "string",
  1543. "description": "name of the repo to fork",
  1544. "name": "repo",
  1545. "in": "path",
  1546. "required": true
  1547. },
  1548. {
  1549. "name": "body",
  1550. "in": "body",
  1551. "schema": {
  1552. "$ref": "#/definitions/CreateForkOption"
  1553. }
  1554. }
  1555. ],
  1556. "responses": {
  1557. "202": {
  1558. "$ref": "#/responses/Repository"
  1559. }
  1560. }
  1561. }
  1562. },
  1563. "/repos/{owner}/{repo}/hooks": {
  1564. "get": {
  1565. "produces": [
  1566. "application/json"
  1567. ],
  1568. "tags": [
  1569. "repository"
  1570. ],
  1571. "summary": "List the hooks in a repository",
  1572. "operationId": "repoListHooks",
  1573. "parameters": [
  1574. {
  1575. "type": "string",
  1576. "description": "owner of the repo",
  1577. "name": "owner",
  1578. "in": "path",
  1579. "required": true
  1580. },
  1581. {
  1582. "type": "string",
  1583. "description": "name of the repo",
  1584. "name": "repo",
  1585. "in": "path",
  1586. "required": true
  1587. }
  1588. ],
  1589. "responses": {
  1590. "200": {
  1591. "$ref": "#/responses/HookList"
  1592. }
  1593. }
  1594. },
  1595. "post": {
  1596. "consumes": [
  1597. "application/json"
  1598. ],
  1599. "produces": [
  1600. "application/json"
  1601. ],
  1602. "tags": [
  1603. "repository"
  1604. ],
  1605. "summary": "Create a hook",
  1606. "operationId": "repoCreateHook",
  1607. "parameters": [
  1608. {
  1609. "type": "string",
  1610. "description": "owner of the repo",
  1611. "name": "owner",
  1612. "in": "path",
  1613. "required": true
  1614. },
  1615. {
  1616. "type": "string",
  1617. "description": "name of the repo",
  1618. "name": "repo",
  1619. "in": "path",
  1620. "required": true
  1621. },
  1622. {
  1623. "name": "body",
  1624. "in": "body",
  1625. "schema": {
  1626. "$ref": "#/definitions/CreateHookOption"
  1627. }
  1628. }
  1629. ],
  1630. "responses": {
  1631. "201": {
  1632. "$ref": "#/responses/Hook"
  1633. }
  1634. }
  1635. }
  1636. },
  1637. "/repos/{owner}/{repo}/hooks/{id}": {
  1638. "get": {
  1639. "produces": [
  1640. "application/json"
  1641. ],
  1642. "tags": [
  1643. "repository"
  1644. ],
  1645. "summary": "Get a hook",
  1646. "operationId": "repoGetHook",
  1647. "parameters": [
  1648. {
  1649. "type": "string",
  1650. "description": "owner of the repo",
  1651. "name": "owner",
  1652. "in": "path",
  1653. "required": true
  1654. },
  1655. {
  1656. "type": "string",
  1657. "description": "name of the repo",
  1658. "name": "repo",
  1659. "in": "path",
  1660. "required": true
  1661. },
  1662. {
  1663. "type": "integer",
  1664. "format": "int64",
  1665. "description": "id of the hook to get",
  1666. "name": "id",
  1667. "in": "path",
  1668. "required": true
  1669. }
  1670. ],
  1671. "responses": {
  1672. "200": {
  1673. "$ref": "#/responses/Hook"
  1674. }
  1675. }
  1676. },
  1677. "delete": {
  1678. "produces": [
  1679. "application/json"
  1680. ],
  1681. "tags": [
  1682. "repository"
  1683. ],
  1684. "summary": "Delete a hook in a repository",
  1685. "operationId": "repoDeleteHook",
  1686. "parameters": [
  1687. {
  1688. "type": "string",
  1689. "description": "owner of the repo",
  1690. "name": "owner",
  1691. "in": "path",
  1692. "required": true
  1693. },
  1694. {
  1695. "type": "string",
  1696. "description": "name of the repo",
  1697. "name": "repo",
  1698. "in": "path",
  1699. "required": true
  1700. },
  1701. {
  1702. "type": "integer",
  1703. "format": "int64",
  1704. "description": "id of the hook to delete",
  1705. "name": "id",
  1706. "in": "path",
  1707. "required": true
  1708. }
  1709. ],
  1710. "responses": {
  1711. "204": {
  1712. "$ref": "#/responses/empty"
  1713. },
  1714. "404": {
  1715. "$ref": "#/responses/notFound"
  1716. }
  1717. }
  1718. },
  1719. "patch": {
  1720. "produces": [
  1721. "application/json"
  1722. ],
  1723. "tags": [
  1724. "repository"
  1725. ],
  1726. "summary": "Edit a hook in a repository",
  1727. "operationId": "repoEditHook",
  1728. "parameters": [
  1729. {
  1730. "type": "string",
  1731. "description": "owner of the repo",
  1732. "name": "owner",
  1733. "in": "path",
  1734. "required": true
  1735. },
  1736. {
  1737. "type": "string",
  1738. "description": "name of the repo",
  1739. "name": "repo",
  1740. "in": "path",
  1741. "required": true
  1742. },
  1743. {
  1744. "type": "integer",
  1745. "format": "int64",
  1746. "description": "index of the hook",
  1747. "name": "id",
  1748. "in": "path",
  1749. "required": true
  1750. },
  1751. {
  1752. "name": "body",
  1753. "in": "body",
  1754. "schema": {
  1755. "$ref": "#/definitions/EditHookOption"
  1756. }
  1757. }
  1758. ],
  1759. "responses": {
  1760. "200": {
  1761. "$ref": "#/responses/Hook"
  1762. }
  1763. }
  1764. }
  1765. },
  1766. "/repos/{owner}/{repo}/hooks/{id}/tests": {
  1767. "post": {
  1768. "produces": [
  1769. "application/json"
  1770. ],
  1771. "tags": [
  1772. "repository"
  1773. ],
  1774. "summary": "Test a push webhook",
  1775. "operationId": "repoTestHook",
  1776. "parameters": [
  1777. {
  1778. "type": "string",
  1779. "description": "owner of the repo",
  1780. "name": "owner",
  1781. "in": "path",
  1782. "required": true
  1783. },
  1784. {
  1785. "type": "string",
  1786. "description": "name of the repo",
  1787. "name": "repo",
  1788. "in": "path",
  1789. "required": true
  1790. },
  1791. {
  1792. "type": "integer",
  1793. "format": "int64",
  1794. "description": "id of the hook to test",
  1795. "name": "id",
  1796. "in": "path",
  1797. "required": true
  1798. }
  1799. ],
  1800. "responses": {
  1801. "204": {
  1802. "$ref": "#/responses/empty"
  1803. }
  1804. }
  1805. }
  1806. },
  1807. "/repos/{owner}/{repo}/issues": {
  1808. "get": {
  1809. "produces": [
  1810. "application/json"
  1811. ],
  1812. "tags": [
  1813. "issue"
  1814. ],
  1815. "summary": "List a repository's issues",
  1816. "operationId": "issueListIssues",
  1817. "parameters": [
  1818. {
  1819. "type": "string",
  1820. "description": "owner of the repo",
  1821. "name": "owner",
  1822. "in": "path",
  1823. "required": true
  1824. },
  1825. {
  1826. "type": "string",
  1827. "description": "name of the repo",
  1828. "name": "repo",
  1829. "in": "path",
  1830. "required": true
  1831. },
  1832. {
  1833. "type": "string",
  1834. "description": "whether issue is open or closed",
  1835. "name": "state",
  1836. "in": "query"
  1837. },
  1838. {
  1839. "type": "integer",
  1840. "description": "page number of requested issues",
  1841. "name": "page",
  1842. "in": "query"
  1843. },
  1844. {
  1845. "type": "string",
  1846. "description": "search string",
  1847. "name": "q",
  1848. "in": "query"
  1849. }
  1850. ],
  1851. "responses": {
  1852. "200": {
  1853. "$ref": "#/responses/IssueList"
  1854. }
  1855. }
  1856. },
  1857. "post": {
  1858. "consumes": [
  1859. "application/json"
  1860. ],
  1861. "produces": [
  1862. "application/json"
  1863. ],
  1864. "tags": [
  1865. "issue"
  1866. ],
  1867. "summary": "Create an issue",
  1868. "operationId": "issueCreateIssue",
  1869. "parameters": [
  1870. {
  1871. "type": "string",
  1872. "description": "owner of the repo",
  1873. "name": "owner",
  1874. "in": "path",
  1875. "required": true
  1876. },
  1877. {
  1878. "type": "string",
  1879. "description": "name of the repo",
  1880. "name": "repo",
  1881. "in": "path",
  1882. "required": true
  1883. },
  1884. {
  1885. "name": "body",
  1886. "in": "body",
  1887. "schema": {
  1888. "$ref": "#/definitions/CreateIssueOption"
  1889. }
  1890. }
  1891. ],
  1892. "responses": {
  1893. "201": {
  1894. "$ref": "#/responses/Issue"
  1895. }
  1896. }
  1897. }
  1898. },
  1899. "/repos/{owner}/{repo}/issues/comments": {
  1900. "get": {
  1901. "produces": [
  1902. "application/json"
  1903. ],
  1904. "tags": [
  1905. "issue"
  1906. ],
  1907. "summary": "List all comments in a repository",
  1908. "operationId": "issueGetRepoComments",
  1909. "parameters": [
  1910. {
  1911. "type": "string",
  1912. "description": "owner of the repo",
  1913. "name": "owner",
  1914. "in": "path",
  1915. "required": true
  1916. },
  1917. {
  1918. "type": "string",
  1919. "description": "name of the repo",
  1920. "name": "repo",
  1921. "in": "path",
  1922. "required": true
  1923. },
  1924. {
  1925. "type": "string",
  1926. "description": "if provided, only comments updated since the provided time are returned.",
  1927. "name": "since",
  1928. "in": "query"
  1929. }
  1930. ],
  1931. "responses": {
  1932. "200": {
  1933. "$ref": "#/responses/CommentList"
  1934. }
  1935. }
  1936. }
  1937. },
  1938. "/repos/{owner}/{repo}/issues/comments/{id}": {
  1939. "delete": {
  1940. "tags": [
  1941. "issue"
  1942. ],
  1943. "summary": "Delete a comment",
  1944. "operationId": "issueDeleteComment",
  1945. "parameters": [
  1946. {
  1947. "type": "string",
  1948. "description": "owner of the repo",
  1949. "name": "owner",
  1950. "in": "path",
  1951. "required": true
  1952. },
  1953. {
  1954. "type": "string",
  1955. "description": "name of the repo",
  1956. "name": "repo",
  1957. "in": "path",
  1958. "required": true
  1959. },
  1960. {
  1961. "type": "integer",
  1962. "format": "int64",
  1963. "description": "id of comment to delete",
  1964. "name": "id",
  1965. "in": "path",
  1966. "required": true
  1967. }
  1968. ],
  1969. "responses": {
  1970. "204": {
  1971. "$ref": "#/responses/empty"
  1972. }
  1973. }
  1974. },
  1975. "patch": {
  1976. "consumes": [
  1977. "application/json"
  1978. ],
  1979. "produces": [
  1980. "application/json"
  1981. ],
  1982. "tags": [
  1983. "issue"
  1984. ],
  1985. "summary": "Edit a comment",
  1986. "operationId": "issueEditComment",
  1987. "parameters": [
  1988. {
  1989. "type": "string",
  1990. "description": "owner of the repo",
  1991. "name": "owner",
  1992. "in": "path",
  1993. "required": true
  1994. },
  1995. {
  1996. "type": "string",
  1997. "description": "name of the repo",
  1998. "name": "repo",
  1999. "in": "path",
  2000. "required": true
  2001. },
  2002. {
  2003. "type": "integer",
  2004. "format": "int64",
  2005. "description": "id of the comment to edit",
  2006. "name": "id",
  2007. "in": "path",
  2008. "required": true
  2009. },
  2010. {
  2011. "name": "body",
  2012. "in": "body",
  2013. "schema": {
  2014. "$ref": "#/definitions/EditIssueCommentOption"
  2015. }
  2016. }
  2017. ],
  2018. "responses": {
  2019. "200": {
  2020. "$ref": "#/responses/Comment"
  2021. }
  2022. }
  2023. }
  2024. },
  2025. "/repos/{owner}/{repo}/issues/{id}/times": {
  2026. "get": {
  2027. "produces": [
  2028. "application/json"
  2029. ],
  2030. "tags": [
  2031. "issue"
  2032. ],
  2033. "summary": "List an issue's tracked times",
  2034. "operationId": "issueTrackedTimes",
  2035. "parameters": [
  2036. {
  2037. "type": "string",
  2038. "description": "owner of the repo",
  2039. "name": "owner",
  2040. "in": "path",
  2041. "required": true
  2042. },
  2043. {
  2044. "type": "string",
  2045. "description": "name of the repo",
  2046. "name": "repo",
  2047. "in": "path",
  2048. "required": true
  2049. },
  2050. {
  2051. "type": "integer",
  2052. "format": "int64",
  2053. "description": "index of the issue",
  2054. "name": "id",
  2055. "in": "path",
  2056. "required": true
  2057. }
  2058. ],
  2059. "responses": {
  2060. "200": {
  2061. "$ref": "#/responses/TrackedTimeList"
  2062. }
  2063. }
  2064. },
  2065. "post": {
  2066. "consumes": [
  2067. "application/json"
  2068. ],
  2069. "produces": [
  2070. "application/json"
  2071. ],
  2072. "tags": [
  2073. "issue"
  2074. ],
  2075. "summary": "Add a tracked time to a issue",
  2076. "operationId": "issueAddTime",
  2077. "parameters": [
  2078. {
  2079. "type": "string",
  2080. "description": "owner of the repo",
  2081. "name": "owner",
  2082. "in": "path",
  2083. "required": true
  2084. },
  2085. {
  2086. "type": "string",
  2087. "description": "name of the repo",
  2088. "name": "repo",
  2089. "in": "path",
  2090. "required": true
  2091. },
  2092. {
  2093. "type": "integer",
  2094. "format": "int64",
  2095. "description": "index of the issue to add tracked time to",
  2096. "name": "id",
  2097. "in": "path",
  2098. "required": true
  2099. },
  2100. {
  2101. "name": "body",
  2102. "in": "body",
  2103. "schema": {
  2104. "$ref": "#/definitions/AddTimeOption"
  2105. }
  2106. }
  2107. ],
  2108. "responses": {
  2109. "200": {
  2110. "$ref": "#/responses/TrackedTime"
  2111. },
  2112. "400": {
  2113. "$ref": "#/responses/error"
  2114. },
  2115. "403": {
  2116. "$ref": "#/responses/error"
  2117. }
  2118. }
  2119. }
  2120. },
  2121. "/repos/{owner}/{repo}/issues/{index}": {
  2122. "get": {
  2123. "produces": [
  2124. "application/json"
  2125. ],
  2126. "tags": [
  2127. "issue"
  2128. ],
  2129. "summary": "Get an issue",
  2130. "operationId": "issueGetIssue",
  2131. "parameters": [
  2132. {
  2133. "type": "string",
  2134. "description": "owner of the repo",
  2135. "name": "owner",
  2136. "in": "path",
  2137. "required": true
  2138. },
  2139. {
  2140. "type": "string",
  2141. "description": "name of the repo",
  2142. "name": "repo",
  2143. "in": "path",
  2144. "required": true
  2145. },
  2146. {
  2147. "type": "integer",
  2148. "format": "int64",
  2149. "description": "index of the issue to get",
  2150. "name": "index",
  2151. "in": "path",
  2152. "required": true
  2153. }
  2154. ],
  2155. "responses": {
  2156. "200": {
  2157. "$ref": "#/responses/Issue"
  2158. }
  2159. }
  2160. },
  2161. "patch": {
  2162. "consumes": [
  2163. "application/json"
  2164. ],
  2165. "produces": [
  2166. "application/json"
  2167. ],
  2168. "tags": [
  2169. "issue"
  2170. ],
  2171. "summary": "Edit an issue",
  2172. "operationId": "issueEditIssue",
  2173. "parameters": [
  2174. {
  2175. "type": "string",
  2176. "description": "owner of the repo",
  2177. "name": "owner",
  2178. "in": "path",
  2179. "required": true
  2180. },
  2181. {
  2182. "type": "string",
  2183. "description": "name of the repo",
  2184. "name": "repo",
  2185. "in": "path",
  2186. "required": true
  2187. },
  2188. {
  2189. "type": "integer",
  2190. "format": "int64",
  2191. "description": "index of the issue to edit",
  2192. "name": "index",
  2193. "in": "path",
  2194. "required": true
  2195. },
  2196. {
  2197. "name": "body",
  2198. "in": "body",
  2199. "schema": {
  2200. "$ref": "#/definitions/EditIssueOption"
  2201. }
  2202. }
  2203. ],
  2204. "responses": {
  2205. "201": {
  2206. "$ref": "#/responses/Issue"
  2207. }
  2208. }
  2209. }
  2210. },
  2211. "/repos/{owner}/{repo}/issues/{index}/comments": {
  2212. "get": {
  2213. "produces": [
  2214. "application/json"
  2215. ],
  2216. "tags": [
  2217. "issue"
  2218. ],
  2219. "summary": "List all comments on an issue",
  2220. "operationId": "issueGetComments",
  2221. "parameters": [
  2222. {
  2223. "type": "string",
  2224. "description": "owner of the repo",
  2225. "name": "owner",
  2226. "in": "path",
  2227. "required": true
  2228. },
  2229. {
  2230. "type": "string",
  2231. "description": "name of the repo",
  2232. "name": "repo",
  2233. "in": "path",
  2234. "required": true
  2235. },
  2236. {
  2237. "type": "integer",
  2238. "format": "int64",
  2239. "description": "index of the issue",
  2240. "name": "index",
  2241. "in": "path",
  2242. "required": true
  2243. },
  2244. {
  2245. "type": "string",
  2246. "description": "if provided, only comments updated since the specified time are returned.",
  2247. "name": "since",
  2248. "in": "query"
  2249. }
  2250. ],
  2251. "responses": {
  2252. "200": {
  2253. "$ref": "#/responses/CommentList"
  2254. }
  2255. }
  2256. },
  2257. "post": {
  2258. "consumes": [
  2259. "application/json"
  2260. ],
  2261. "produces": [
  2262. "application/json"
  2263. ],
  2264. "tags": [
  2265. "issue"
  2266. ],
  2267. "summary": "Add a comment to an issue",
  2268. "operationId": "issueCreateComment",
  2269. "parameters": [
  2270. {
  2271. "type": "string",
  2272. "description": "owner of the repo",
  2273. "name": "owner",
  2274. "in": "path",
  2275. "required": true
  2276. },
  2277. {
  2278. "type": "string",
  2279. "description": "name of the repo",
  2280. "name": "repo",
  2281. "in": "path",
  2282. "required": true
  2283. },
  2284. {
  2285. "type": "integer",
  2286. "format": "int64",
  2287. "description": "index of the issue",
  2288. "name": "index",
  2289. "in": "path",
  2290. "required": true
  2291. },
  2292. {
  2293. "name": "body",
  2294. "in": "body",
  2295. "schema": {
  2296. "$ref": "#/definitions/CreateIssueCommentOption"
  2297. }
  2298. }
  2299. ],
  2300. "responses": {
  2301. "201": {
  2302. "$ref": "#/responses/Comment"
  2303. }
  2304. }
  2305. }
  2306. },
  2307. "/repos/{owner}/{repo}/issues/{index}/comments/{id}": {
  2308. "delete": {
  2309. "tags": [
  2310. "issue"
  2311. ],
  2312. "summary": "Delete a comment",
  2313. "operationId": "issueDeleteCommentDeprecated",
  2314. "deprecated": true,
  2315. "parameters": [
  2316. {
  2317. "type": "string",
  2318. "description": "owner of the repo",
  2319. "name": "owner",
  2320. "in": "path",
  2321. "required": true
  2322. },
  2323. {
  2324. "type": "string",
  2325. "description": "name of the repo",
  2326. "name": "repo",
  2327. "in": "path",
  2328. "required": true
  2329. },
  2330. {
  2331. "type": "integer",
  2332. "description": "this parameter is ignored",
  2333. "name": "index",
  2334. "in": "path",
  2335. "required": true
  2336. },
  2337. {
  2338. "type": "integer",
  2339. "format": "int64",
  2340. "description": "id of comment to delete",
  2341. "name": "id",
  2342. "in": "path",
  2343. "required": true
  2344. }
  2345. ],
  2346. "responses": {
  2347. "204": {
  2348. "$ref": "#/responses/empty"
  2349. }
  2350. }
  2351. },
  2352. "patch": {
  2353. "consumes": [
  2354. "application/json"
  2355. ],
  2356. "produces": [
  2357. "application/json"
  2358. ],
  2359. "tags": [
  2360. "issue"
  2361. ],
  2362. "summary": "Edit a comment",
  2363. "operationId": "issueEditCommentDeprecated",
  2364. "deprecated": true,
  2365. "parameters": [
  2366. {
  2367. "type": "string",
  2368. "description": "owner of the repo",
  2369. "name": "owner",
  2370. "in": "path",
  2371. "required": true
  2372. },
  2373. {
  2374. "type": "string",
  2375. "description": "name of the repo",
  2376. "name": "repo",
  2377. "in": "path",
  2378. "required": true
  2379. },
  2380. {
  2381. "type": "integer",
  2382. "description": "this parameter is ignored",
  2383. "name": "index",
  2384. "in": "path",
  2385. "required": true
  2386. },
  2387. {
  2388. "type": "integer",
  2389. "format": "int64",
  2390. "description": "id of the comment to edit",
  2391. "name": "id",
  2392. "in": "path",
  2393. "required": true
  2394. },
  2395. {
  2396. "name": "body",
  2397. "in": "body",
  2398. "schema": {
  2399. "$ref": "#/definitions/EditIssueCommentOption"
  2400. }
  2401. }
  2402. ],
  2403. "responses": {
  2404. "200": {
  2405. "$ref": "#/responses/Comment"
  2406. }
  2407. }
  2408. }
  2409. },
  2410. "/repos/{owner}/{repo}/issues/{index}/deadline": {
  2411. "post": {
  2412. "consumes": [
  2413. "application/json"
  2414. ],
  2415. "produces": [
  2416. "application/json"
  2417. ],
  2418. "tags": [
  2419. "issue"
  2420. ],
  2421. "summary": "Set an issue deadline. If set to null, the deadline is deleted.",
  2422. "operationId": "issueEditIssueDeadline",
  2423. "parameters": [
  2424. {
  2425. "type": "string",
  2426. "description": "owner of the repo",
  2427. "name": "owner",
  2428. "in": "path",
  2429. "required": true
  2430. },
  2431. {
  2432. "type": "string",
  2433. "description": "name of the repo",
  2434. "name": "repo",
  2435. "in": "path",
  2436. "required": true
  2437. },
  2438. {
  2439. "type": "integer",
  2440. "format": "int64",
  2441. "description": "index of the issue to create or update a deadline on",
  2442. "name": "index",
  2443. "in": "path",
  2444. "required": true
  2445. },
  2446. {
  2447. "name": "body",
  2448. "in": "body",
  2449. "schema": {
  2450. "$ref": "#/definitions/EditDeadlineOption"
  2451. }
  2452. }
  2453. ],
  2454. "responses": {
  2455. "201": {
  2456. "$ref": "#/responses/IssueDeadline"
  2457. },
  2458. "403": {
  2459. "description": "Not repo writer"
  2460. },
  2461. "404": {
  2462. "description": "Issue not found"
  2463. }
  2464. }
  2465. }
  2466. },
  2467. "/repos/{owner}/{repo}/issues/{index}/labels": {
  2468. "get": {
  2469. "produces": [
  2470. "application/json"
  2471. ],
  2472. "tags": [
  2473. "issue"
  2474. ],
  2475. "summary": "Get an issue's labels",
  2476. "operationId": "issueGetLabels",
  2477. "parameters": [
  2478. {
  2479. "type": "string",
  2480. "description": "owner of the repo",
  2481. "name": "owner",
  2482. "in": "path",
  2483. "required": true
  2484. },
  2485. {
  2486. "type": "string",
  2487. "description": "name of the repo",
  2488. "name": "repo",
  2489. "in": "path",
  2490. "required": true
  2491. },
  2492. {
  2493. "type": "integer",
  2494. "format": "int64",
  2495. "description": "index of the issue",
  2496. "name": "index",
  2497. "in": "path",
  2498. "required": true
  2499. }
  2500. ],
  2501. "responses": {
  2502. "200": {
  2503. "$ref": "#/responses/LabelList"
  2504. },
  2505. "404": {
  2506. "$ref": "#/responses/notFound"
  2507. }
  2508. }
  2509. },
  2510. "put": {
  2511. "consumes": [
  2512. "application/json"
  2513. ],
  2514. "produces": [
  2515. "application/json"
  2516. ],
  2517. "tags": [
  2518. "issue"
  2519. ],
  2520. "summary": "Replace an issue's labels",
  2521. "operationId": "issueReplaceLabels",
  2522. "parameters": [
  2523. {
  2524. "type": "string",
  2525. "description": "owner of the repo",
  2526. "name": "owner",
  2527. "in": "path",
  2528. "required": true
  2529. },
  2530. {
  2531. "type": "string",
  2532. "description": "name of the repo",
  2533. "name": "repo",
  2534. "in": "path",
  2535. "required": true
  2536. },
  2537. {
  2538. "type": "integer",
  2539. "format": "int64",
  2540. "description": "index of the issue",
  2541. "name": "index",
  2542. "in": "path",
  2543. "required": true
  2544. },
  2545. {
  2546. "name": "body",
  2547. "in": "body",
  2548. "schema": {
  2549. "$ref": "#/definitions/IssueLabelsOption"
  2550. }
  2551. }
  2552. ],
  2553. "responses": {
  2554. "200": {
  2555. "$ref": "#/responses/LabelList"
  2556. }
  2557. }
  2558. },
  2559. "post": {
  2560. "consumes": [
  2561. "application/json"
  2562. ],
  2563. "produces": [
  2564. "application/json"
  2565. ],
  2566. "tags": [
  2567. "issue"
  2568. ],
  2569. "summary": "Add a label to an issue",
  2570. "operationId": "issueAddLabel",
  2571. "parameters": [
  2572. {
  2573. "type": "string",
  2574. "description": "owner of the repo",
  2575. "name": "owner",
  2576. "in": "path",
  2577. "required": true
  2578. },
  2579. {
  2580. "type": "string",
  2581. "description": "name of the repo",
  2582. "name": "repo",
  2583. "in": "path",
  2584. "required": true
  2585. },
  2586. {
  2587. "type": "integer",
  2588. "format": "int64",
  2589. "description": "index of the issue",
  2590. "name": "index",
  2591. "in": "path",
  2592. "required": true
  2593. },
  2594. {
  2595. "name": "body",
  2596. "in": "body",
  2597. "schema": {
  2598. "$ref": "#/definitions/IssueLabelsOption"
  2599. }
  2600. }
  2601. ],
  2602. "responses": {
  2603. "200": {
  2604. "$ref": "#/responses/LabelList"
  2605. }
  2606. }
  2607. },
  2608. "delete": {
  2609. "produces": [
  2610. "application/json"
  2611. ],
  2612. "tags": [
  2613. "issue"
  2614. ],
  2615. "summary": "Remove all labels from an issue",
  2616. "operationId": "issueClearLabels",
  2617. "parameters": [
  2618. {
  2619. "type": "string",
  2620. "description": "owner of the repo",
  2621. "name": "owner",
  2622. "in": "path",
  2623. "required": true
  2624. },
  2625. {
  2626. "type": "string",
  2627. "description": "name of the repo",
  2628. "name": "repo",
  2629. "in": "path",
  2630. "required": true
  2631. },
  2632. {
  2633. "type": "integer",
  2634. "format": "int64",
  2635. "description": "index of the issue",
  2636. "name": "index",
  2637. "in": "path",
  2638. "required": true
  2639. }
  2640. ],
  2641. "responses": {
  2642. "204": {
  2643. "$ref": "#/responses/empty"
  2644. }
  2645. }
  2646. }
  2647. },
  2648. "/repos/{owner}/{repo}/issues/{index}/labels/{id}": {
  2649. "delete": {
  2650. "produces": [
  2651. "application/json"
  2652. ],
  2653. "tags": [
  2654. "issue"
  2655. ],
  2656. "summary": "Remove a label from an issue",
  2657. "operationId": "issueRemoveLabel",
  2658. "parameters": [
  2659. {
  2660. "type": "string",
  2661. "description": "owner of the repo",
  2662. "name": "owner",
  2663. "in": "path",
  2664. "required": true
  2665. },
  2666. {
  2667. "type": "string",
  2668. "description": "name of the repo",
  2669. "name": "repo",
  2670. "in": "path",
  2671. "required": true
  2672. },
  2673. {
  2674. "type": "integer",
  2675. "format": "int64",
  2676. "description": "index of the issue",
  2677. "name": "index",
  2678. "in": "path",
  2679. "required": true
  2680. },
  2681. {
  2682. "type": "integer",
  2683. "format": "int64",
  2684. "description": "id of the label to remove",
  2685. "name": "id",
  2686. "in": "path",
  2687. "required": true
  2688. }
  2689. ],
  2690. "responses": {
  2691. "204": {
  2692. "$ref": "#/responses/empty"
  2693. }
  2694. }
  2695. }
  2696. },
  2697. "/repos/{owner}/{repo}/keys": {
  2698. "get": {
  2699. "produces": [
  2700. "application/json"
  2701. ],
  2702. "tags": [
  2703. "repository"
  2704. ],
  2705. "summary": "List a repository's keys",
  2706. "operationId": "repoListKeys",
  2707. "parameters": [
  2708. {
  2709. "type": "string",
  2710. "description": "owner of the repo",
  2711. "name": "owner",
  2712. "in": "path",
  2713. "required": true
  2714. },
  2715. {
  2716. "type": "string",
  2717. "description": "name of the repo",
  2718. "name": "repo",
  2719. "in": "path",
  2720. "required": true
  2721. },
  2722. {
  2723. "type": "integer",
  2724. "description": "the key_id to search for",
  2725. "name": "key_id",
  2726. "in": "query"
  2727. },
  2728. {
  2729. "type": "string",
  2730. "description": "fingerprint of the key",
  2731. "name": "fingerprint",
  2732. "in": "query"
  2733. }
  2734. ],
  2735. "responses": {
  2736. "200": {
  2737. "$ref": "#/responses/DeployKeyList"
  2738. }
  2739. }
  2740. },
  2741. "post": {
  2742. "consumes": [
  2743. "application/json"
  2744. ],
  2745. "produces": [
  2746. "application/json"
  2747. ],
  2748. "tags": [
  2749. "repository"
  2750. ],
  2751. "summary": "Add a key to a repository",
  2752. "operationId": "repoCreateKey",
  2753. "parameters": [
  2754. {
  2755. "type": "string",
  2756. "description": "owner of the repo",
  2757. "name": "owner",
  2758. "in": "path",
  2759. "required": true
  2760. },
  2761. {
  2762. "type": "string",
  2763. "description": "name of the repo",
  2764. "name": "repo",
  2765. "in": "path",
  2766. "required": true
  2767. },
  2768. {
  2769. "name": "body",
  2770. "in": "body",
  2771. "schema": {
  2772. "$ref": "#/definitions/CreateKeyOption"
  2773. }
  2774. }
  2775. ],
  2776. "responses": {
  2777. "201": {
  2778. "$ref": "#/responses/DeployKey"
  2779. }
  2780. }
  2781. }
  2782. },
  2783. "/repos/{owner}/{repo}/keys/{id}": {
  2784. "get": {
  2785. "produces": [
  2786. "application/json"
  2787. ],
  2788. "tags": [
  2789. "repository"
  2790. ],
  2791. "summary": "Get a repository's key by id",
  2792. "operationId": "repoGetKey",
  2793. "parameters": [
  2794. {
  2795. "type": "string",
  2796. "description": "owner of the repo",
  2797. "name": "owner",
  2798. "in": "path",
  2799. "required": true
  2800. },
  2801. {
  2802. "type": "string",
  2803. "description": "name of the repo",
  2804. "name": "repo",
  2805. "in": "path",
  2806. "required": true
  2807. },
  2808. {
  2809. "type": "integer",
  2810. "format": "int64",
  2811. "description": "id of the key to get",
  2812. "name": "id",
  2813. "in": "path",
  2814. "required": true
  2815. }
  2816. ],
  2817. "responses": {
  2818. "200": {
  2819. "$ref": "#/responses/DeployKey"
  2820. }
  2821. }
  2822. },
  2823. "delete": {
  2824. "tags": [
  2825. "repository"
  2826. ],
  2827. "summary": "Delete a key from a repository",
  2828. "operationId": "repoDeleteKey",
  2829. "parameters": [
  2830. {
  2831. "type": "string",
  2832. "description": "owner of the repo",
  2833. "name": "owner",
  2834. "in": "path",
  2835. "required": true
  2836. },
  2837. {
  2838. "type": "string",
  2839. "description": "name of the repo",
  2840. "name": "repo",
  2841. "in": "path",
  2842. "required": true
  2843. },
  2844. {
  2845. "type": "integer",
  2846. "format": "int64",
  2847. "description": "id of the key to delete",
  2848. "name": "id",
  2849. "in": "path",
  2850. "required": true
  2851. }
  2852. ],
  2853. "responses": {
  2854. "204": {
  2855. "$ref": "#/responses/empty"
  2856. }
  2857. }
  2858. }
  2859. },
  2860. "/repos/{owner}/{repo}/labels": {
  2861. "get": {
  2862. "produces": [
  2863. "application/json"
  2864. ],
  2865. "tags": [
  2866. "issue"
  2867. ],
  2868. "summary": "Get all of a repository's labels",
  2869. "operationId": "issueListLabels",
  2870. "parameters": [
  2871. {
  2872. "type": "string",
  2873. "description": "owner of the repo",
  2874. "name": "owner",
  2875. "in": "path",
  2876. "required": true
  2877. },
  2878. {
  2879. "type": "string",
  2880. "description": "name of the repo",
  2881. "name": "repo",
  2882. "in": "path",
  2883. "required": true
  2884. }
  2885. ],
  2886. "responses": {
  2887. "200": {
  2888. "$ref": "#/responses/LabelList"
  2889. }
  2890. }
  2891. },
  2892. "post": {
  2893. "consumes": [
  2894. "application/json"
  2895. ],
  2896. "produces": [
  2897. "application/json"
  2898. ],
  2899. "tags": [
  2900. "issue"
  2901. ],
  2902. "summary": "Create a label",
  2903. "operationId": "issueCreateLabel",
  2904. "parameters": [
  2905. {
  2906. "type": "string",
  2907. "description": "owner of the repo",
  2908. "name": "owner",
  2909. "in": "path",
  2910. "required": true
  2911. },
  2912. {
  2913. "type": "string",
  2914. "description": "name of the repo",
  2915. "name": "repo",
  2916. "in": "path",
  2917. "required": true
  2918. },
  2919. {
  2920. "name": "body",
  2921. "in": "body",
  2922. "schema": {
  2923. "$ref": "#/definitions/CreateLabelOption"
  2924. }
  2925. }
  2926. ],
  2927. "responses": {
  2928. "201": {
  2929. "$ref": "#/responses/Label"
  2930. }
  2931. }
  2932. }
  2933. },
  2934. "/repos/{owner}/{repo}/labels/{id}": {
  2935. "get": {
  2936. "produces": [
  2937. "application/json"
  2938. ],
  2939. "tags": [
  2940. "issue"
  2941. ],
  2942. "summary": "Get a single label",
  2943. "operationId": "issueGetLabel",
  2944. "parameters": [
  2945. {
  2946. "type": "string",
  2947. "description": "owner of the repo",
  2948. "name": "owner",
  2949. "in": "path",
  2950. "required": true
  2951. },
  2952. {
  2953. "type": "string",
  2954. "description": "name of the repo",
  2955. "name": "repo",
  2956. "in": "path",
  2957. "required": true
  2958. },
  2959. {
  2960. "type": "integer",
  2961. "format": "int64",
  2962. "description": "id of the label to get",
  2963. "name": "id",
  2964. "in": "path",
  2965. "required": true
  2966. }
  2967. ],
  2968. "responses": {
  2969. "200": {
  2970. "$ref": "#/responses/Label"
  2971. }
  2972. }
  2973. },
  2974. "delete": {
  2975. "tags": [
  2976. "issue"
  2977. ],
  2978. "summary": "Delete a label",
  2979. "operationId": "issueDeleteLabel",
  2980. "parameters": [
  2981. {
  2982. "type": "string",
  2983. "description": "owner of the repo",
  2984. "name": "owner",
  2985. "in": "path",
  2986. "required": true
  2987. },
  2988. {
  2989. "type": "string",
  2990. "description": "name of the repo",
  2991. "name": "repo",
  2992. "in": "path",
  2993. "required": true
  2994. },
  2995. {
  2996. "type": "integer",
  2997. "format": "int64",
  2998. "description": "id of the label to delete",
  2999. "name": "id",
  3000. "in": "path",
  3001. "required": true
  3002. }
  3003. ],
  3004. "responses": {
  3005. "204": {
  3006. "$ref": "#/responses/empty"
  3007. }
  3008. }
  3009. },
  3010. "patch": {
  3011. "consumes": [
  3012. "application/json"
  3013. ],
  3014. "produces": [
  3015. "application/json"
  3016. ],
  3017. "tags": [
  3018. "issue"
  3019. ],
  3020. "summary": "Update a label",
  3021. "operationId": "issueEditLabel",
  3022. "parameters": [
  3023. {
  3024. "type": "string",
  3025. "description": "owner of the repo",
  3026. "name": "owner",
  3027. "in": "path",
  3028. "required": true
  3029. },
  3030. {
  3031. "type": "string",
  3032. "description": "name of the repo",
  3033. "name": "repo",
  3034. "in": "path",
  3035. "required": true
  3036. },
  3037. {
  3038. "type": "integer",
  3039. "format": "int64",
  3040. "description": "id of the label to edit",
  3041. "name": "id",
  3042. "in": "path",
  3043. "required": true
  3044. },
  3045. {
  3046. "name": "body",
  3047. "in": "body",
  3048. "schema": {
  3049. "$ref": "#/definitions/EditLabelOption"
  3050. }
  3051. }
  3052. ],
  3053. "responses": {
  3054. "200": {
  3055. "$ref": "#/responses/Label"
  3056. }
  3057. }
  3058. }
  3059. },
  3060. "/repos/{owner}/{repo}/milestones": {
  3061. "get": {
  3062. "produces": [
  3063. "application/json"
  3064. ],
  3065. "tags": [
  3066. "issue"
  3067. ],
  3068. "summary": "Get all of a repository's milestones",
  3069. "operationId": "issueGetMilestonesList",
  3070. "parameters": [
  3071. {
  3072. "type": "string",
  3073. "description": "owner of the repo",
  3074. "name": "owner",
  3075. "in": "path",
  3076. "required": true
  3077. },
  3078. {
  3079. "type": "string",
  3080. "description": "name of the repo",
  3081. "name": "repo",
  3082. "in": "path",
  3083. "required": true
  3084. }
  3085. ],
  3086. "responses": {
  3087. "200": {
  3088. "$ref": "#/responses/MilestoneList"
  3089. }
  3090. }
  3091. },
  3092. "post": {
  3093. "consumes": [
  3094. "application/json"
  3095. ],
  3096. "produces": [
  3097. "application/json"
  3098. ],
  3099. "tags": [
  3100. "issue"
  3101. ],
  3102. "summary": "Create a milestone",
  3103. "operationId": "issueCreateMilestone",
  3104. "parameters": [
  3105. {
  3106. "type": "string",
  3107. "description": "owner of the repo",
  3108. "name": "owner",
  3109. "in": "path",
  3110. "required": true
  3111. },
  3112. {
  3113. "type": "string",
  3114. "description": "name of the repo",
  3115. "name": "repo",
  3116. "in": "path",
  3117. "required": true
  3118. },
  3119. {
  3120. "name": "body",
  3121. "in": "body",
  3122. "schema": {
  3123. "$ref": "#/definitions/CreateMilestoneOption"
  3124. }
  3125. }
  3126. ],
  3127. "responses": {
  3128. "201": {
  3129. "$ref": "#/responses/Milestone"
  3130. }
  3131. }
  3132. }
  3133. },
  3134. "/repos/{owner}/{repo}/milestones/{id}": {
  3135. "get": {
  3136. "produces": [
  3137. "application/json"
  3138. ],
  3139. "tags": [
  3140. "issue"
  3141. ],
  3142. "summary": "Get a milestone",
  3143. "operationId": "issueGetMilestone",
  3144. "parameters": [
  3145. {
  3146. "type": "string",
  3147. "description": "owner of the repo",
  3148. "name": "owner",
  3149. "in": "path",
  3150. "required": true
  3151. },
  3152. {
  3153. "type": "string",
  3154. "description": "name of the repo",
  3155. "name": "repo",
  3156. "in": "path",
  3157. "required": true
  3158. },
  3159. {
  3160. "type": "integer",
  3161. "format": "int64",
  3162. "description": "id of the milestone",
  3163. "name": "id",
  3164. "in": "path",
  3165. "required": true
  3166. }
  3167. ],
  3168. "responses": {
  3169. "200": {
  3170. "$ref": "#/responses/Milestone"
  3171. }
  3172. }
  3173. },
  3174. "delete": {
  3175. "tags": [
  3176. "issue"
  3177. ],
  3178. "summary": "Delete a milestone",
  3179. "operationId": "issueDeleteMilestone",
  3180. "parameters": [
  3181. {
  3182. "type": "string",
  3183. "description": "owner of the repo",
  3184. "name": "owner",
  3185. "in": "path",
  3186. "required": true
  3187. },
  3188. {
  3189. "type": "string",
  3190. "description": "name of the repo",
  3191. "name": "repo",
  3192. "in": "path",
  3193. "required": true
  3194. },
  3195. {
  3196. "type": "integer",
  3197. "format": "int64",
  3198. "description": "id of the milestone to delete",
  3199. "name": "id",
  3200. "in": "path",
  3201. "required": true
  3202. }
  3203. ],
  3204. "responses": {
  3205. "204": {
  3206. "$ref": "#/responses/empty"
  3207. }
  3208. }
  3209. },
  3210. "patch": {
  3211. "consumes": [
  3212. "application/json"
  3213. ],
  3214. "produces": [
  3215. "application/json"
  3216. ],
  3217. "tags": [
  3218. "issue"
  3219. ],
  3220. "summary": "Update a milestone",
  3221. "operationId": "issueEditMilestone",
  3222. "parameters": [
  3223. {
  3224. "type": "string",
  3225. "description": "owner of the repo",
  3226. "name": "owner",
  3227. "in": "path",
  3228. "required": true
  3229. },
  3230. {
  3231. "type": "string",
  3232. "description": "name of the repo",
  3233. "name": "repo",
  3234. "in": "path",
  3235. "required": true
  3236. },
  3237. {
  3238. "type": "integer",
  3239. "format": "int64",
  3240. "description": "id of the milestone",
  3241. "name": "id",
  3242. "in": "path",
  3243. "required": true
  3244. },
  3245. {
  3246. "name": "body",
  3247. "in": "body",
  3248. "schema": {
  3249. "$ref": "#/definitions/EditMilestoneOption"
  3250. }
  3251. }
  3252. ],
  3253. "responses": {
  3254. "200": {
  3255. "$ref": "#/responses/Milestone"
  3256. }
  3257. }
  3258. }
  3259. },
  3260. "/repos/{owner}/{repo}/mirror-sync": {
  3261. "post": {
  3262. "produces": [
  3263. "application/json"
  3264. ],
  3265. "tags": [
  3266. "repository"
  3267. ],
  3268. "summary": "Sync a mirrored repository",
  3269. "operationId": "repoMirrorSync",
  3270. "parameters": [
  3271. {
  3272. "type": "string",
  3273. "description": "owner of the repo to sync",
  3274. "name": "owner",
  3275. "in": "path",
  3276. "required": true
  3277. },
  3278. {
  3279. "type": "string",
  3280. "description": "name of the repo to sync",
  3281. "name": "repo",
  3282. "in": "path",
  3283. "required": true
  3284. }
  3285. ],
  3286. "responses": {
  3287. "200": {
  3288. "$ref": "#/responses/empty"
  3289. }
  3290. }
  3291. }
  3292. },
  3293. "/repos/{owner}/{repo}/pulls": {
  3294. "get": {
  3295. "produces": [
  3296. "application/json"
  3297. ],
  3298. "tags": [
  3299. "repository"
  3300. ],
  3301. "summary": "List a repo's pull requests",
  3302. "operationId": "repoListPullRequests",
  3303. "parameters": [
  3304. {
  3305. "type": "string",
  3306. "description": "owner of the repo",
  3307. "name": "owner",
  3308. "in": "path",
  3309. "required": true
  3310. },
  3311. {
  3312. "type": "string",
  3313. "description": "name of the repo",
  3314. "name": "repo",
  3315. "in": "path",
  3316. "required": true
  3317. },
  3318. {
  3319. "type": "integer",
  3320. "description": "Page number",
  3321. "name": "page",
  3322. "in": "query"
  3323. },
  3324. {
  3325. "enum": [
  3326. "closed",
  3327. "open",
  3328. "all"
  3329. ],
  3330. "type": "string",
  3331. "description": "State of pull request: open or closed (optional)",
  3332. "name": "state",
  3333. "in": "query"
  3334. },
  3335. {
  3336. "enum": [
  3337. "oldest",
  3338. "recentupdate",
  3339. "leastupdate",
  3340. "mostcomment",
  3341. "leastcomment",
  3342. "priority"
  3343. ],
  3344. "type": "string",
  3345. "description": "Type of sort",
  3346. "name": "sort",
  3347. "in": "query"
  3348. },
  3349. {
  3350. "type": "integer",
  3351. "format": "int64",
  3352. "description": "ID of the milestone",
  3353. "name": "milestone",
  3354. "in": "query"
  3355. },
  3356. {
  3357. "type": "array",
  3358. "items": {
  3359. "type": "integer",
  3360. "format": "int64"
  3361. },
  3362. "collectionFormat": "multi",
  3363. "description": "Label IDs",
  3364. "name": "labels",
  3365. "in": "query"
  3366. }
  3367. ],
  3368. "responses": {
  3369. "200": {
  3370. "$ref": "#/responses/PullRequestList"
  3371. }
  3372. }
  3373. },
  3374. "post": {
  3375. "consumes": [
  3376. "application/json"
  3377. ],
  3378. "produces": [
  3379. "application/json"
  3380. ],
  3381. "tags": [
  3382. "repository"
  3383. ],
  3384. "summary": "Create a pull request",
  3385. "operationId": "repoCreatePullRequest",
  3386. "parameters": [
  3387. {
  3388. "type": "string",
  3389. "description": "owner of the repo",
  3390. "name": "owner",
  3391. "in": "path",
  3392. "required": true
  3393. },
  3394. {
  3395. "type": "string",
  3396. "description": "name of the repo",
  3397. "name": "repo",
  3398. "in": "path",
  3399. "required": true
  3400. },
  3401. {
  3402. "name": "body",
  3403. "in": "body",
  3404. "schema": {
  3405. "$ref": "#/definitions/CreatePullRequestOption"
  3406. }
  3407. }
  3408. ],
  3409. "responses": {
  3410. "201": {
  3411. "$ref": "#/responses/PullRequest"
  3412. }
  3413. }
  3414. }
  3415. },
  3416. "/repos/{owner}/{repo}/pulls/{index}": {
  3417. "get": {
  3418. "produces": [
  3419. "application/json"
  3420. ],
  3421. "tags": [
  3422. "repository"
  3423. ],
  3424. "summary": "Get a pull request",
  3425. "operationId": "repoGetPullRequest",
  3426. "parameters": [
  3427. {
  3428. "type": "string",
  3429. "description": "owner of the repo",
  3430. "name": "owner",
  3431. "in": "path",
  3432. "required": true
  3433. },
  3434. {
  3435. "type": "string",
  3436. "description": "name of the repo",
  3437. "name": "repo",
  3438. "in": "path",
  3439. "required": true
  3440. },
  3441. {
  3442. "type": "integer",
  3443. "format": "int64",
  3444. "description": "index of the pull request to get",
  3445. "name": "index",
  3446. "in": "path",
  3447. "required": true
  3448. }
  3449. ],
  3450. "responses": {
  3451. "200": {
  3452. "$ref": "#/responses/PullRequest"
  3453. }
  3454. }
  3455. },
  3456. "patch": {
  3457. "consumes": [
  3458. "application/json"
  3459. ],
  3460. "produces": [
  3461. "application/json"
  3462. ],
  3463. "tags": [
  3464. "repository"
  3465. ],
  3466. "summary": "Update a pull request",
  3467. "operationId": "repoEditPullRequest",
  3468. "parameters": [
  3469. {
  3470. "type": "string",
  3471. "description": "owner of the repo",
  3472. "name": "owner",
  3473. "in": "path",
  3474. "required": true
  3475. },
  3476. {
  3477. "type": "string",
  3478. "description": "name of the repo",
  3479. "name": "repo",
  3480. "in": "path",
  3481. "required": true
  3482. },
  3483. {
  3484. "type": "integer",
  3485. "format": "int64",
  3486. "description": "index of the pull request to edit",
  3487. "name": "index",
  3488. "in": "path",
  3489. "required": true
  3490. },
  3491. {
  3492. "name": "body",
  3493. "in": "body",
  3494. "schema": {
  3495. "$ref": "#/definitions/EditPullRequestOption"
  3496. }
  3497. }
  3498. ],
  3499. "responses": {
  3500. "201": {
  3501. "$ref": "#/responses/PullRequest"
  3502. }
  3503. }
  3504. }
  3505. },
  3506. "/repos/{owner}/{repo}/pulls/{index}/merge": {
  3507. "get": {
  3508. "produces": [
  3509. "application/json"
  3510. ],
  3511. "tags": [
  3512. "repository"
  3513. ],
  3514. "summary": "Check if a pull request has been merged",
  3515. "operationId": "repoPullRequestIsMerged",
  3516. "parameters": [
  3517. {
  3518. "type": "string",
  3519. "description": "owner of the repo",
  3520. "name": "owner",
  3521. "in": "path",
  3522. "required": true
  3523. },
  3524. {
  3525. "type": "string",
  3526. "description": "name of the repo",
  3527. "name": "repo",
  3528. "in": "path",
  3529. "required": true
  3530. },
  3531. {
  3532. "type": "integer",
  3533. "format": "int64",
  3534. "description": "index of the pull request",
  3535. "name": "index",
  3536. "in": "path",
  3537. "required": true
  3538. }
  3539. ],
  3540. "responses": {
  3541. "204": {
  3542. "description": "pull request has been merged"
  3543. },
  3544. "404": {
  3545. "description": "pull request has not been merged"
  3546. }
  3547. }
  3548. },
  3549. "post": {
  3550. "produces": [
  3551. "application/json"
  3552. ],
  3553. "tags": [
  3554. "repository"
  3555. ],
  3556. "summary": "Merge a pull request",
  3557. "operationId": "repoMergePullRequest",
  3558. "parameters": [
  3559. {
  3560. "type": "string",
  3561. "description": "owner of the repo",
  3562. "name": "owner",
  3563. "in": "path",
  3564. "required": true
  3565. },
  3566. {
  3567. "type": "string",
  3568. "description": "name of the repo",
  3569. "name": "repo",
  3570. "in": "path",
  3571. "required": true
  3572. },
  3573. {
  3574. "type": "integer",
  3575. "format": "int64",
  3576. "description": "index of the pull request to merge",
  3577. "name": "index",
  3578. "in": "path",
  3579. "required": true
  3580. }
  3581. ],
  3582. "responses": {
  3583. "200": {
  3584. "$ref": "#/responses/empty"
  3585. },
  3586. "405": {
  3587. "$ref": "#/responses/empty"
  3588. }
  3589. }
  3590. }
  3591. },
  3592. "/repos/{owner}/{repo}/raw/{filepath}": {
  3593. "get": {
  3594. "produces": [
  3595. "application/json"
  3596. ],
  3597. "tags": [
  3598. "repository"
  3599. ],
  3600. "summary": "Get a file from a repository",
  3601. "operationId": "repoGetRawFile",
  3602. "parameters": [
  3603. {
  3604. "type": "string",
  3605. "description": "owner of the repo",
  3606. "name": "owner",
  3607. "in": "path",
  3608. "required": true
  3609. },
  3610. {
  3611. "type": "string",
  3612. "description": "name of the repo",
  3613. "name": "repo",
  3614. "in": "path",
  3615. "required": true
  3616. },
  3617. {
  3618. "type": "string",
  3619. "description": "filepath of the file to get",
  3620. "name": "filepath",
  3621. "in": "path",
  3622. "required": true
  3623. }
  3624. ],
  3625. "responses": {
  3626. "200": {
  3627. "description": "success"
  3628. }
  3629. }
  3630. }
  3631. },
  3632. "/repos/{owner}/{repo}/releases": {
  3633. "get": {
  3634. "produces": [
  3635. "application/json"
  3636. ],
  3637. "tags": [
  3638. "repository"
  3639. ],
  3640. "summary": "List a repo's releases",
  3641. "operationId": "repoListReleases",
  3642. "parameters": [
  3643. {
  3644. "type": "string",
  3645. "description": "owner of the repo",
  3646. "name": "owner",
  3647. "in": "path",
  3648. "required": true
  3649. },
  3650. {
  3651. "type": "string",
  3652. "description": "name of the repo",
  3653. "name": "repo",
  3654. "in": "path",
  3655. "required": true
  3656. }
  3657. ],
  3658. "responses": {
  3659. "200": {
  3660. "$ref": "#/responses/ReleaseList"
  3661. }
  3662. }
  3663. },
  3664. "post": {
  3665. "consumes": [
  3666. "application/json"
  3667. ],
  3668. "produces": [
  3669. "application/json"
  3670. ],
  3671. "tags": [
  3672. "repository"
  3673. ],
  3674. "summary": "Create a release",
  3675. "operationId": "repoCreateRelease",
  3676. "parameters": [
  3677. {
  3678. "type": "string",
  3679. "description": "owner of the repo",
  3680. "name": "owner",
  3681. "in": "path",
  3682. "required": true
  3683. },
  3684. {
  3685. "type": "string",
  3686. "description": "name of the repo",
  3687. "name": "repo",
  3688. "in": "path",
  3689. "required": true
  3690. },
  3691. {
  3692. "name": "body",
  3693. "in": "body",
  3694. "schema": {
  3695. "$ref": "#/definitions/CreateReleaseOption"
  3696. }
  3697. }
  3698. ],
  3699. "responses": {
  3700. "201": {
  3701. "$ref": "#/responses/Release"
  3702. }
  3703. }
  3704. }
  3705. },
  3706. "/repos/{owner}/{repo}/releases/{id}": {
  3707. "get": {
  3708. "produces": [
  3709. "application/json"
  3710. ],
  3711. "tags": [
  3712. "repository"
  3713. ],
  3714. "summary": "Get a release",
  3715. "operationId": "repoGetRelease",
  3716. "parameters": [
  3717. {
  3718. "type": "string",
  3719. "description": "owner of the repo",
  3720. "name": "owner",
  3721. "in": "path",
  3722. "required": true
  3723. },
  3724. {
  3725. "type": "string",
  3726. "description": "name of the repo",
  3727. "name": "repo",
  3728. "in": "path",
  3729. "required": true
  3730. },
  3731. {
  3732. "type": "integer",
  3733. "format": "int64",
  3734. "description": "id of the release to get",
  3735. "name": "id",
  3736. "in": "path",
  3737. "required": true
  3738. }
  3739. ],
  3740. "responses": {
  3741. "200": {
  3742. "$ref": "#/responses/Release"
  3743. }
  3744. }
  3745. },
  3746. "delete": {
  3747. "tags": [
  3748. "repository"
  3749. ],
  3750. "summary": "Delete a release",
  3751. "operationId": "repoDeleteRelease",
  3752. "parameters": [
  3753. {
  3754. "type": "string",
  3755. "description": "owner of the repo",
  3756. "name": "owner",
  3757. "in": "path",
  3758. "required": true
  3759. },
  3760. {
  3761. "type": "string",
  3762. "description": "name of the repo",
  3763. "name": "repo",
  3764. "in": "path",
  3765. "required": true
  3766. },
  3767. {
  3768. "type": "integer",
  3769. "format": "int64",
  3770. "description": "id of the release to delete",
  3771. "name": "id",
  3772. "in": "path",
  3773. "required": true
  3774. }
  3775. ],
  3776. "responses": {
  3777. "204": {
  3778. "$ref": "#/responses/empty"
  3779. }
  3780. }
  3781. },
  3782. "patch": {
  3783. "consumes": [
  3784. "application/json"
  3785. ],
  3786. "produces": [
  3787. "application/json"
  3788. ],
  3789. "tags": [
  3790. "repository"
  3791. ],
  3792. "summary": "Update a release",
  3793. "operationId": "repoEditRelease",
  3794. "parameters": [
  3795. {
  3796. "type": "string",
  3797. "description": "owner of the repo",
  3798. "name": "owner",
  3799. "in": "path",
  3800. "required": true
  3801. },
  3802. {
  3803. "type": "string",
  3804. "description": "name of the repo",
  3805. "name": "repo",
  3806. "in": "path",
  3807. "required": true
  3808. },
  3809. {
  3810. "type": "integer",
  3811. "format": "int64",
  3812. "description": "id of the release to edit",
  3813. "name": "id",
  3814. "in": "path",
  3815. "required": true
  3816. },
  3817. {
  3818. "name": "body",
  3819. "in": "body",
  3820. "schema": {
  3821. "$ref": "#/definitions/EditReleaseOption"
  3822. }
  3823. }
  3824. ],
  3825. "responses": {
  3826. "200": {
  3827. "$ref": "#/responses/Release"
  3828. }
  3829. }
  3830. }
  3831. },
  3832. "/repos/{owner}/{repo}/releases/{id}/assets": {
  3833. "get": {
  3834. "produces": [
  3835. "application/json"
  3836. ],
  3837. "tags": [
  3838. "repository"
  3839. ],
  3840. "summary": "List release's attachments",
  3841. "operationId": "repoListReleaseAttachments",
  3842. "parameters": [
  3843. {
  3844. "type": "string",
  3845. "description": "owner of the repo",
  3846. "name": "owner",
  3847. "in": "path",
  3848. "required": true
  3849. },
  3850. {
  3851. "type": "string",
  3852. "description": "name of the repo",
  3853. "name": "repo",
  3854. "in": "path",
  3855. "required": true
  3856. },
  3857. {
  3858. "type": "integer",
  3859. "format": "int64",
  3860. "description": "id of the release",
  3861. "name": "id",
  3862. "in": "path",
  3863. "required": true
  3864. }
  3865. ],
  3866. "responses": {
  3867. "200": {
  3868. "$ref": "#/responses/AttachmentList"
  3869. }
  3870. }
  3871. },
  3872. "post": {
  3873. "consumes": [
  3874. "multipart/form-data"
  3875. ],
  3876. "produces": [
  3877. "application/json"
  3878. ],
  3879. "tags": [
  3880. "repository"
  3881. ],
  3882. "summary": "Create a release attachment",
  3883. "operationId": "repoCreateReleaseAttachment",
  3884. "parameters": [
  3885. {
  3886. "type": "string",
  3887. "description": "owner of the repo",
  3888. "name": "owner",
  3889. "in": "path",
  3890. "required": true
  3891. },
  3892. {
  3893. "type": "string",
  3894. "description": "name of the repo",
  3895. "name": "repo",
  3896. "in": "path",
  3897. "required": true
  3898. },
  3899. {
  3900. "type": "integer",
  3901. "format": "int64",
  3902. "description": "id of the release",
  3903. "name": "id",
  3904. "in": "path",
  3905. "required": true
  3906. },
  3907. {
  3908. "type": "string",
  3909. "description": "name of the attachment",
  3910. "name": "name",
  3911. "in": "query"
  3912. },
  3913. {
  3914. "type": "file",
  3915. "description": "attachment to upload",
  3916. "name": "attachment",
  3917. "in": "formData",
  3918. "required": true
  3919. }
  3920. ],
  3921. "responses": {
  3922. "201": {
  3923. "$ref": "#/responses/Attachment"
  3924. }
  3925. }
  3926. }
  3927. },
  3928. "/repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}": {
  3929. "get": {
  3930. "produces": [
  3931. "application/json"
  3932. ],
  3933. "tags": [
  3934. "repository"
  3935. ],
  3936. "summary": "Get a release attachment",
  3937. "operationId": "repoGetReleaseAttachment",
  3938. "parameters": [
  3939. {
  3940. "type": "string",
  3941. "description": "owner of the repo",
  3942. "name": "owner",
  3943. "in": "path",
  3944. "required": true
  3945. },
  3946. {
  3947. "type": "string",
  3948. "description": "name of the repo",
  3949. "name": "repo",
  3950. "in": "path",
  3951. "required": true
  3952. },
  3953. {
  3954. "type": "integer",
  3955. "format": "int64",
  3956. "description": "id of the release",
  3957. "name": "id",
  3958. "in": "path",
  3959. "required": true
  3960. },
  3961. {
  3962. "type": "integer",
  3963. "format": "int64",
  3964. "description": "id of the attachment to get",
  3965. "name": "attachment_id",
  3966. "in": "path",
  3967. "required": true
  3968. }
  3969. ],
  3970. "responses": {
  3971. "200": {
  3972. "$ref": "#/responses/Attachment"
  3973. }
  3974. }
  3975. },
  3976. "delete": {
  3977. "produces": [
  3978. "application/json"
  3979. ],
  3980. "tags": [
  3981. "repository"
  3982. ],
  3983. "summary": "Delete a release attachment",
  3984. "operationId": "repoDeleteReleaseAttachment",
  3985. "parameters": [
  3986. {
  3987. "type": "string",
  3988. "description": "owner of the repo",
  3989. "name": "owner",
  3990. "in": "path",
  3991. "required": true
  3992. },
  3993. {
  3994. "type": "string",
  3995. "description": "name of the repo",
  3996. "name": "repo",
  3997. "in": "path",
  3998. "required": true
  3999. },
  4000. {
  4001. "type": "integer",
  4002. "format": "int64",
  4003. "description": "id of the release",
  4004. "name": "id",
  4005. "in": "path",
  4006. "required": true
  4007. },
  4008. {
  4009. "type": "integer",
  4010. "format": "int64",
  4011. "description": "id of the attachment to delete",
  4012. "name": "attachment_id",
  4013. "in": "path",
  4014. "required": true
  4015. }
  4016. ],
  4017. "responses": {
  4018. "204": {
  4019. "$ref": "#/responses/empty"
  4020. }
  4021. }
  4022. },
  4023. "patch": {
  4024. "consumes": [
  4025. "application/json"
  4026. ],
  4027. "produces": [
  4028. "application/json"
  4029. ],
  4030. "tags": [
  4031. "repository"
  4032. ],
  4033. "summary": "Edit a release attachment",
  4034. "operationId": "repoEditReleaseAttachment",
  4035. "parameters": [
  4036. {
  4037. "type": "string",
  4038. "description": "owner of the repo",
  4039. "name": "owner",
  4040. "in": "path",
  4041. "required": true
  4042. },
  4043. {
  4044. "type": "string",
  4045. "description": "name of the repo",
  4046. "name": "repo",
  4047. "in": "path",
  4048. "required": true
  4049. },
  4050. {
  4051. "type": "integer",
  4052. "format": "int64",
  4053. "description": "id of the release",
  4054. "name": "id",
  4055. "in": "path",
  4056. "required": true
  4057. },
  4058. {
  4059. "type": "integer",
  4060. "format": "int64",
  4061. "description": "id of the attachment to edit",
  4062. "name": "attachment_id",
  4063. "in": "path",
  4064. "required": true
  4065. },
  4066. {
  4067. "name": "body",
  4068. "in": "body",
  4069. "schema": {
  4070. "$ref": "#/definitions/EditAttachmentOptions"
  4071. }
  4072. }
  4073. ],
  4074. "responses": {
  4075. "201": {
  4076. "$ref": "#/responses/Attachment"
  4077. }
  4078. }
  4079. }
  4080. },
  4081. "/repos/{owner}/{repo}/stargazers": {
  4082. "get": {
  4083. "produces": [
  4084. "application/json"
  4085. ],
  4086. "tags": [
  4087. "repository"
  4088. ],
  4089. "summary": "List a repo's stargazers",
  4090. "operationId": "repoListStargazers",
  4091. "parameters": [
  4092. {
  4093. "type": "string",
  4094. "description": "owner of the repo",
  4095. "name": "owner",
  4096. "in": "path",
  4097. "required": true
  4098. },
  4099. {
  4100. "type": "string",
  4101. "description": "name of the repo",
  4102. "name": "repo",
  4103. "in": "path",
  4104. "required": true
  4105. }
  4106. ],
  4107. "responses": {
  4108. "200": {
  4109. "$ref": "#/responses/UserList"
  4110. }
  4111. }
  4112. }
  4113. },
  4114. "/repos/{owner}/{repo}/statuses/{sha}": {
  4115. "get": {
  4116. "produces": [
  4117. "application/json"
  4118. ],
  4119. "tags": [
  4120. "repository"
  4121. ],
  4122. "summary": "Get a commit's statuses",
  4123. "operationId": "repoListStatuses",
  4124. "parameters": [
  4125. {
  4126. "type": "string",
  4127. "description": "owner of the repo",
  4128. "name": "owner",
  4129. "in": "path",
  4130. "required": true
  4131. },
  4132. {
  4133. "type": "string",
  4134. "description": "name of the repo",
  4135. "name": "repo",
  4136. "in": "path",
  4137. "required": true
  4138. },
  4139. {
  4140. "type": "string",
  4141. "description": "sha of the commit",
  4142. "name": "sha",
  4143. "in": "path",
  4144. "required": true
  4145. }
  4146. ],
  4147. "responses": {
  4148. "200": {
  4149. "$ref": "#/responses/StatusList"
  4150. }
  4151. }
  4152. },
  4153. "post": {
  4154. "produces": [
  4155. "application/json"
  4156. ],
  4157. "tags": [
  4158. "repository"
  4159. ],
  4160. "summary": "Create a commit status",
  4161. "operationId": "repoCreateStatus",
  4162. "parameters": [
  4163. {
  4164. "type": "string",
  4165. "description": "owner of the repo",
  4166. "name": "owner",
  4167. "in": "path",
  4168. "required": true
  4169. },
  4170. {
  4171. "type": "string",
  4172. "description": "name of the repo",
  4173. "name": "repo",
  4174. "in": "path",
  4175. "required": true
  4176. },
  4177. {
  4178. "type": "string",
  4179. "description": "sha of the commit",
  4180. "name": "sha",
  4181. "in": "path",
  4182. "required": true
  4183. },
  4184. {
  4185. "name": "body",
  4186. "in": "body",
  4187. "schema": {
  4188. "$ref": "#/definitions/CreateStatusOption"
  4189. }
  4190. }
  4191. ],
  4192. "responses": {
  4193. "200": {
  4194. "$ref": "#/responses/StatusList"
  4195. }
  4196. }
  4197. }
  4198. },
  4199. "/repos/{owner}/{repo}/subscribers": {
  4200. "get": {
  4201. "produces": [
  4202. "application/json"
  4203. ],
  4204. "tags": [
  4205. "repository"
  4206. ],
  4207. "summary": "List a repo's watchers",
  4208. "operationId": "repoListSubscribers",
  4209. "parameters": [
  4210. {
  4211. "type": "string",
  4212. "description": "owner of the repo",
  4213. "name": "owner",
  4214. "in": "path",
  4215. "required": true
  4216. },
  4217. {
  4218. "type": "string",
  4219. "description": "name of the repo",
  4220. "name": "repo",
  4221. "in": "path",
  4222. "required": true
  4223. }
  4224. ],
  4225. "responses": {
  4226. "200": {
  4227. "$ref": "#/responses/UserList"
  4228. }
  4229. }
  4230. }
  4231. },
  4232. "/repos/{owner}/{repo}/subscription": {
  4233. "get": {
  4234. "tags": [
  4235. "repository"
  4236. ],
  4237. "summary": "Check if the current user is watching a repo",
  4238. "operationId": "userCurrentCheckSubscription",
  4239. "parameters": [
  4240. {
  4241. "type": "string",
  4242. "description": "owner of the repo",
  4243. "name": "owner",
  4244. "in": "path",
  4245. "required": true
  4246. },
  4247. {
  4248. "type": "string",
  4249. "description": "name of the repo",
  4250. "name": "repo",
  4251. "in": "path",
  4252. "required": true
  4253. }
  4254. ],
  4255. "responses": {
  4256. "200": {
  4257. "$ref": "#/responses/WatchInfo"
  4258. }
  4259. }
  4260. },
  4261. "put": {
  4262. "tags": [
  4263. "repository"
  4264. ],
  4265. "summary": "Watch a repo",
  4266. "operationId": "userCurrentPutSubscription",
  4267. "parameters": [
  4268. {
  4269. "type": "string",
  4270. "description": "owner of the repo",
  4271. "name": "owner",
  4272. "in": "path",
  4273. "required": true
  4274. },
  4275. {
  4276. "type": "string",
  4277. "description": "name of the repo",
  4278. "name": "repo",
  4279. "in": "path",
  4280. "required": true
  4281. }
  4282. ],
  4283. "responses": {
  4284. "200": {
  4285. "$ref": "#/responses/WatchInfo"
  4286. }
  4287. }
  4288. },
  4289. "delete": {
  4290. "tags": [
  4291. "repository"
  4292. ],
  4293. "summary": "Unwatch a repo",
  4294. "operationId": "userCurrentDeleteSubscription",
  4295. "parameters": [
  4296. {
  4297. "type": "string",
  4298. "description": "owner of the repo",
  4299. "name": "owner",
  4300. "in": "path",
  4301. "required": true
  4302. },
  4303. {
  4304. "type": "string",
  4305. "description": "name of the repo",
  4306. "name": "repo",
  4307. "in": "path",
  4308. "required": true
  4309. }
  4310. ],
  4311. "responses": {
  4312. "204": {
  4313. "$ref": "#/responses/empty"
  4314. }
  4315. }
  4316. }
  4317. },
  4318. "/repos/{owner}/{repo}/times": {
  4319. "get": {
  4320. "produces": [
  4321. "application/json"
  4322. ],
  4323. "tags": [
  4324. "repository"
  4325. ],
  4326. "summary": "List a repo's tracked times",
  4327. "operationId": "repoTrackedTimes",
  4328. "parameters": [
  4329. {
  4330. "type": "string",
  4331. "description": "owner of the repo",
  4332. "name": "owner",
  4333. "in": "path",
  4334. "required": true
  4335. },
  4336. {
  4337. "type": "string",
  4338. "description": "name of the repo",
  4339. "name": "repo",
  4340. "in": "path",
  4341. "required": true
  4342. }
  4343. ],
  4344. "responses": {
  4345. "200": {
  4346. "$ref": "#/responses/TrackedTimeList"
  4347. }
  4348. }
  4349. }
  4350. },
  4351. "/repos/{owner}/{repo}/times/{user}": {
  4352. "get": {
  4353. "produces": [
  4354. "application/json"
  4355. ],
  4356. "tags": [
  4357. "user"
  4358. ],
  4359. "summary": "List a user's tracked times in a repo",
  4360. "operationId": "userTrackedTimes",
  4361. "parameters": [
  4362. {
  4363. "type": "string",
  4364. "description": "owner of the repo",
  4365. "name": "owner",
  4366. "in": "path",
  4367. "required": true
  4368. },
  4369. {
  4370. "type": "string",
  4371. "description": "name of the repo",
  4372. "name": "repo",
  4373. "in": "path",
  4374. "required": true
  4375. },
  4376. {
  4377. "type": "string",
  4378. "description": "username of user",
  4379. "name": "user",
  4380. "in": "path",
  4381. "required": true
  4382. }
  4383. ],
  4384. "responses": {
  4385. "200": {
  4386. "$ref": "#/responses/TrackedTimeList"
  4387. }
  4388. }
  4389. }
  4390. },
  4391. "/repositories/{id}": {
  4392. "get": {
  4393. "produces": [
  4394. "application/json"
  4395. ],
  4396. "tags": [
  4397. "repository"
  4398. ],
  4399. "summary": "Get a repository by id",
  4400. "operationId": "repoGetByID",
  4401. "parameters": [
  4402. {
  4403. "type": "integer",
  4404. "format": "int64",
  4405. "description": "id of the repo to get",
  4406. "name": "id",
  4407. "in": "path",
  4408. "required": true
  4409. }
  4410. ],
  4411. "responses": {
  4412. "200": {
  4413. "$ref": "#/responses/Repository"
  4414. }
  4415. }
  4416. }
  4417. },
  4418. "/teams/{id}": {
  4419. "get": {
  4420. "produces": [
  4421. "application/json"
  4422. ],
  4423. "tags": [
  4424. "organization"
  4425. ],
  4426. "summary": "Get a team",
  4427. "operationId": "orgGetTeam",
  4428. "parameters": [
  4429. {
  4430. "type": "integer",
  4431. "format": "int64",
  4432. "description": "id of the team to get",
  4433. "name": "id",
  4434. "in": "path",
  4435. "required": true
  4436. }
  4437. ],
  4438. "responses": {
  4439. "200": {
  4440. "$ref": "#/responses/Team"
  4441. }
  4442. }
  4443. },
  4444. "delete": {
  4445. "tags": [
  4446. "organization"
  4447. ],
  4448. "summary": "Delete a team",
  4449. "operationId": "orgDeleteTeam",
  4450. "parameters": [
  4451. {
  4452. "type": "integer",
  4453. "format": "int64",
  4454. "description": "id of the team to delete",
  4455. "name": "id",
  4456. "in": "path",
  4457. "required": true
  4458. }
  4459. ],
  4460. "responses": {
  4461. "204": {
  4462. "description": "team deleted"
  4463. }
  4464. }
  4465. },
  4466. "patch": {
  4467. "consumes": [
  4468. "application/json"
  4469. ],
  4470. "produces": [
  4471. "application/json"
  4472. ],
  4473. "tags": [
  4474. "organization"
  4475. ],
  4476. "summary": "Edit a team",
  4477. "operationId": "orgEditTeam",
  4478. "parameters": [
  4479. {
  4480. "type": "integer",
  4481. "description": "id of the team to edit",
  4482. "name": "id",
  4483. "in": "path",
  4484. "required": true
  4485. },
  4486. {
  4487. "name": "body",
  4488. "in": "body",
  4489. "schema": {
  4490. "$ref": "#/definitions/EditTeamOption"
  4491. }
  4492. }
  4493. ],
  4494. "responses": {
  4495. "200": {
  4496. "$ref": "#/responses/Team"
  4497. }
  4498. }
  4499. }
  4500. },
  4501. "/teams/{id}/members": {
  4502. "get": {
  4503. "produces": [
  4504. "application/json"
  4505. ],
  4506. "tags": [
  4507. "organization"
  4508. ],
  4509. "summary": "List a team's members",
  4510. "operationId": "orgListTeamMembers",
  4511. "parameters": [
  4512. {
  4513. "type": "integer",
  4514. "format": "int64",
  4515. "description": "id of the team",
  4516. "name": "id",
  4517. "in": "path",
  4518. "required": true
  4519. }
  4520. ],
  4521. "responses": {
  4522. "200": {
  4523. "$ref": "#/responses/UserList"
  4524. }
  4525. }
  4526. }
  4527. },
  4528. "/teams/{id}/members/{username}": {
  4529. "put": {
  4530. "produces": [
  4531. "application/json"
  4532. ],
  4533. "tags": [
  4534. "organization"
  4535. ],
  4536. "summary": "Add a team member",
  4537. "operationId": "orgAddTeamMember",
  4538. "parameters": [
  4539. {
  4540. "type": "integer",
  4541. "format": "int64",
  4542. "description": "id of the team",
  4543. "name": "id",
  4544. "in": "path",
  4545. "required": true
  4546. },
  4547. {
  4548. "type": "string",
  4549. "description": "username of the user to add",
  4550. "name": "username",
  4551. "in": "path",
  4552. "required": true
  4553. }
  4554. ],
  4555. "responses": {
  4556. "204": {
  4557. "$ref": "#/responses/empty"
  4558. }
  4559. }
  4560. },
  4561. "delete": {
  4562. "produces": [
  4563. "application/json"
  4564. ],
  4565. "tags": [
  4566. "organization"
  4567. ],
  4568. "summary": "Remove a team member",
  4569. "operationId": "orgRemoveTeamMember",
  4570. "parameters": [
  4571. {
  4572. "type": "integer",
  4573. "format": "int64",
  4574. "description": "id of the team",
  4575. "name": "id",
  4576. "in": "path",
  4577. "required": true
  4578. },
  4579. {
  4580. "type": "string",
  4581. "description": "username of the user to remove",
  4582. "name": "username",
  4583. "in": "path",
  4584. "required": true
  4585. }
  4586. ],
  4587. "responses": {
  4588. "204": {
  4589. "$ref": "#/responses/empty"
  4590. }
  4591. }
  4592. }
  4593. },
  4594. "/teams/{id}/repos": {
  4595. "get": {
  4596. "produces": [
  4597. "application/json"
  4598. ],
  4599. "tags": [
  4600. "organization"
  4601. ],
  4602. "summary": "List a team's repos",
  4603. "operationId": "orgListTeamRepos",
  4604. "parameters": [
  4605. {
  4606. "type": "integer",
  4607. "format": "int64",
  4608. "description": "id of the team",
  4609. "name": "id",
  4610. "in": "path",
  4611. "required": true
  4612. }
  4613. ],
  4614. "responses": {
  4615. "200": {
  4616. "$ref": "#/responses/RepositoryList"
  4617. }
  4618. }
  4619. }
  4620. },
  4621. "/teams/{id}/repos/{org}/{repo}": {
  4622. "put": {
  4623. "produces": [
  4624. "application/json"
  4625. ],
  4626. "tags": [
  4627. "organization"
  4628. ],
  4629. "summary": "Add a repository to a team",
  4630. "operationId": "orgAddTeamRepository",
  4631. "parameters": [
  4632. {
  4633. "type": "integer",
  4634. "format": "int64",
  4635. "description": "id of the team",
  4636. "name": "id",
  4637. "in": "path",
  4638. "required": true
  4639. },
  4640. {
  4641. "type": "string",
  4642. "description": "organization that owns the repo to add",
  4643. "name": "org",
  4644. "in": "path",
  4645. "required": true
  4646. },
  4647. {
  4648. "type": "string",
  4649. "description": "name of the repo to add",
  4650. "name": "repo",
  4651. "in": "path",
  4652. "required": true
  4653. }
  4654. ],
  4655. "responses": {
  4656. "204": {
  4657. "$ref": "#/responses/empty"
  4658. }
  4659. }
  4660. },
  4661. "delete": {
  4662. "description": "This does not delete the repository, it only removes the repository from the team.",
  4663. "produces": [
  4664. "application/json"
  4665. ],
  4666. "tags": [
  4667. "organization"
  4668. ],
  4669. "summary": "Remove a repository from a team",
  4670. "operationId": "orgRemoveTeamRepository",
  4671. "parameters": [
  4672. {
  4673. "type": "integer",
  4674. "format": "int64",
  4675. "description": "id of the team",
  4676. "name": "id",
  4677. "in": "path",
  4678. "required": true
  4679. },
  4680. {
  4681. "type": "string",
  4682. "description": "organization that owns the repo to remove",
  4683. "name": "org",
  4684. "in": "path",
  4685. "required": true
  4686. },
  4687. {
  4688. "type": "string",
  4689. "description": "name of the repo to remove",
  4690. "name": "repo",
  4691. "in": "path",
  4692. "required": true
  4693. }
  4694. ],
  4695. "responses": {
  4696. "204": {
  4697. "$ref": "#/responses/empty"
  4698. }
  4699. }
  4700. }
  4701. },
  4702. "/topics/search": {
  4703. "get": {
  4704. "produces": [
  4705. "application/json"
  4706. ],
  4707. "tags": [
  4708. "repository"
  4709. ],
  4710. "summary": "search topics via keyword",
  4711. "operationId": "topicSearch",
  4712. "parameters": [
  4713. {
  4714. "type": "string",
  4715. "description": "keywords to search",
  4716. "name": "q",
  4717. "in": "query",
  4718. "required": true
  4719. }
  4720. ],
  4721. "responses": {
  4722. "200": {
  4723. "$ref": "#/responses/Repository"
  4724. }
  4725. }
  4726. }
  4727. },
  4728. "/user": {
  4729. "get": {
  4730. "produces": [
  4731. "application/json"
  4732. ],
  4733. "tags": [
  4734. "user"
  4735. ],
  4736. "summary": "Get the authenticated user",
  4737. "operationId": "userGetCurrent",
  4738. "responses": {
  4739. "200": {
  4740. "$ref": "#/responses/User"
  4741. }
  4742. }
  4743. }
  4744. },
  4745. "/user/emails": {
  4746. "get": {
  4747. "produces": [
  4748. "application/json"
  4749. ],
  4750. "tags": [
  4751. "user"
  4752. ],
  4753. "summary": "List the authenticated user's email addresses",
  4754. "operationId": "userListEmails",
  4755. "responses": {
  4756. "200": {
  4757. "$ref": "#/responses/EmailList"
  4758. }
  4759. }
  4760. },
  4761. "post": {
  4762. "produces": [
  4763. "application/json"
  4764. ],
  4765. "tags": [
  4766. "user"
  4767. ],
  4768. "summary": "Add email addresses",
  4769. "operationId": "userAddEmail",
  4770. "parameters": [
  4771. {
  4772. "name": "body",
  4773. "in": "body",
  4774. "schema": {
  4775. "$ref": "#/definitions/CreateEmailOption"
  4776. }
  4777. }
  4778. ],
  4779. "responses": {
  4780. "201": {
  4781. "$ref": "#/responses/EmailList"
  4782. }
  4783. }
  4784. },
  4785. "delete": {
  4786. "produces": [
  4787. "application/json"
  4788. ],
  4789. "tags": [
  4790. "user"
  4791. ],
  4792. "summary": "Delete email addresses",
  4793. "operationId": "userDeleteEmail",
  4794. "parameters": [
  4795. {
  4796. "name": "body",
  4797. "in": "body",
  4798. "schema": {
  4799. "$ref": "#/definitions/DeleteEmailOption"
  4800. }
  4801. }
  4802. ],
  4803. "responses": {
  4804. "204": {
  4805. "$ref": "#/responses/empty"
  4806. }
  4807. }
  4808. }
  4809. },
  4810. "/user/followers": {
  4811. "get": {
  4812. "produces": [
  4813. "application/json"
  4814. ],
  4815. "tags": [
  4816. "user"
  4817. ],
  4818. "summary": "List the authenticated user's followers",
  4819. "operationId": "userCurrentListFollowers",
  4820. "responses": {
  4821. "200": {
  4822. "$ref": "#/responses/UserList"
  4823. }
  4824. }
  4825. }
  4826. },
  4827. "/user/following": {
  4828. "get": {
  4829. "produces": [
  4830. "application/json"
  4831. ],
  4832. "tags": [
  4833. "user"
  4834. ],
  4835. "summary": "List the users that the authenticated user is following",
  4836. "operationId": "userCurrentListFollowing",
  4837. "responses": {
  4838. "200": {
  4839. "$ref": "#/responses/UserList"
  4840. }
  4841. }
  4842. }
  4843. },
  4844. "/user/following/{username}": {
  4845. "get": {
  4846. "tags": [
  4847. "user"
  4848. ],
  4849. "summary": "Check whether a user is followed by the authenticated user",
  4850. "operationId": "userCurrentCheckFollowing",
  4851. "parameters": [
  4852. {
  4853. "type": "string",
  4854. "description": "username of followed user",
  4855. "name": "username",
  4856. "in": "path",
  4857. "required": true
  4858. }
  4859. ],
  4860. "responses": {
  4861. "204": {
  4862. "$ref": "#/responses/empty"
  4863. },
  4864. "404": {
  4865. "$ref": "#/responses/notFound"
  4866. }
  4867. }
  4868. },
  4869. "put": {
  4870. "tags": [
  4871. "user"
  4872. ],
  4873. "summary": "Follow a user",
  4874. "operationId": "userCurrentPutFollow",
  4875. "parameters": [
  4876. {
  4877. "type": "string",
  4878. "description": "username of user to follow",
  4879. "name": "username",
  4880. "in": "path",
  4881. "required": true
  4882. }
  4883. ],
  4884. "responses": {
  4885. "204": {
  4886. "$ref": "#/responses/empty"
  4887. }
  4888. }
  4889. },
  4890. "delete": {
  4891. "tags": [
  4892. "user"
  4893. ],
  4894. "summary": "Unfollow a user",
  4895. "operationId": "userCurrentDeleteFollow",
  4896. "parameters": [
  4897. {
  4898. "type": "string",
  4899. "description": "username of user to unfollow",
  4900. "name": "username",
  4901. "in": "path",
  4902. "required": true
  4903. }
  4904. ],
  4905. "responses": {
  4906. "204": {
  4907. "$ref": "#/responses/empty"
  4908. }
  4909. }
  4910. }
  4911. },
  4912. "/user/gpg_keys": {
  4913. "get": {
  4914. "produces": [
  4915. "application/json"
  4916. ],
  4917. "tags": [
  4918. "user"
  4919. ],
  4920. "summary": "List the authenticated user's GPG keys",
  4921. "operationId": "userCurrentListGPGKeys",
  4922. "responses": {
  4923. "200": {
  4924. "$ref": "#/responses/GPGKeyList"
  4925. }
  4926. }
  4927. },
  4928. "post": {
  4929. "consumes": [
  4930. "application/json"
  4931. ],
  4932. "produces": [
  4933. "application/json"
  4934. ],
  4935. "tags": [
  4936. "user"
  4937. ],
  4938. "summary": "Create a GPG key",
  4939. "operationId": "userCurrentPostGPGKey",
  4940. "parameters": [
  4941. {
  4942. "name": "Form",
  4943. "in": "body",
  4944. "schema": {
  4945. "$ref": "#/definitions/CreateGPGKeyOption"
  4946. }
  4947. }
  4948. ],
  4949. "responses": {
  4950. "201": {
  4951. "$ref": "#/responses/GPGKey"
  4952. },
  4953. "422": {
  4954. "$ref": "#/responses/validationError"
  4955. }
  4956. }
  4957. }
  4958. },
  4959. "/user/gpg_keys/{id}": {
  4960. "get": {
  4961. "produces": [
  4962. "application/json"
  4963. ],
  4964. "tags": [
  4965. "user"
  4966. ],
  4967. "summary": "Get a GPG key",
  4968. "operationId": "userCurrentGetGPGKey",
  4969. "parameters": [
  4970. {
  4971. "type": "integer",
  4972. "format": "int64",
  4973. "description": "id of key to get",
  4974. "name": "id",
  4975. "in": "path",
  4976. "required": true
  4977. }
  4978. ],
  4979. "responses": {
  4980. "200": {
  4981. "$ref": "#/responses/GPGKey"
  4982. },
  4983. "404": {
  4984. "$ref": "#/responses/notFound"
  4985. }
  4986. }
  4987. },
  4988. "delete": {
  4989. "produces": [
  4990. "application/json"
  4991. ],
  4992. "tags": [
  4993. "user"
  4994. ],
  4995. "summary": "Remove a GPG key",
  4996. "operationId": "userCurrentDeleteGPGKey",
  4997. "parameters": [
  4998. {
  4999. "type": "integer",
  5000. "format": "int64",
  5001. "description": "id of key to delete",
  5002. "name": "id",
  5003. "in": "path",
  5004. "required": true
  5005. }
  5006. ],
  5007. "responses": {
  5008. "204": {
  5009. "$ref": "#/responses/empty"
  5010. },
  5011. "403": {
  5012. "$ref": "#/responses/forbidden"
  5013. }
  5014. }
  5015. }
  5016. },
  5017. "/user/keys": {
  5018. "get": {
  5019. "produces": [
  5020. "application/json"
  5021. ],
  5022. "tags": [
  5023. "user"
  5024. ],
  5025. "summary": "List the authenticated user's public keys",
  5026. "operationId": "userCurrentListKeys",
  5027. "parameters": [
  5028. {
  5029. "type": "string",
  5030. "description": "fingerprint of the key",
  5031. "name": "fingerprint",
  5032. "in": "query"
  5033. }
  5034. ],
  5035. "responses": {
  5036. "200": {
  5037. "$ref": "#/responses/PublicKeyList"
  5038. }
  5039. }
  5040. },
  5041. "post": {
  5042. "consumes": [
  5043. "application/json"
  5044. ],
  5045. "produces": [
  5046. "application/json"
  5047. ],
  5048. "tags": [
  5049. "user"
  5050. ],
  5051. "summary": "Create a public key",
  5052. "operationId": "userCurrentPostKey",
  5053. "parameters": [
  5054. {
  5055. "name": "body",
  5056. "in": "body",
  5057. "schema": {
  5058. "$ref": "#/definitions/CreateKeyOption"
  5059. }
  5060. }
  5061. ],
  5062. "responses": {
  5063. "201": {
  5064. "$ref": "#/responses/PublicKey"
  5065. },
  5066. "422": {
  5067. "$ref": "#/responses/validationError"
  5068. }
  5069. }
  5070. }
  5071. },
  5072. "/user/keys/{id}": {
  5073. "get": {
  5074. "produces": [
  5075. "application/json"
  5076. ],
  5077. "tags": [
  5078. "user"
  5079. ],
  5080. "summary": "Get a public key",
  5081. "operationId": "userCurrentGetKey",
  5082. "parameters": [
  5083. {
  5084. "type": "integer",
  5085. "format": "int64",
  5086. "description": "id of key to get",
  5087. "name": "id",
  5088. "in": "path",
  5089. "required": true
  5090. }
  5091. ],
  5092. "responses": {
  5093. "200": {
  5094. "$ref": "#/responses/PublicKey"
  5095. },
  5096. "404": {
  5097. "$ref": "#/responses/notFound"
  5098. }
  5099. }
  5100. },
  5101. "delete": {
  5102. "produces": [
  5103. "application/json"
  5104. ],
  5105. "tags": [
  5106. "user"
  5107. ],
  5108. "summary": "Delete a public key",
  5109. "operationId": "userCurrentDeleteKey",
  5110. "parameters": [
  5111. {
  5112. "type": "integer",
  5113. "format": "int64",
  5114. "description": "id of key to delete",
  5115. "name": "id",
  5116. "in": "path",
  5117. "required": true
  5118. }
  5119. ],
  5120. "responses": {
  5121. "204": {
  5122. "$ref": "#/responses/empty"
  5123. },
  5124. "403": {
  5125. "$ref": "#/responses/forbidden"
  5126. },
  5127. "404": {
  5128. "$ref": "#/responses/notFound"
  5129. }
  5130. }
  5131. }
  5132. },
  5133. "/user/orgs": {
  5134. "get": {
  5135. "produces": [
  5136. "application/json"
  5137. ],
  5138. "tags": [
  5139. "organization"
  5140. ],
  5141. "summary": "List the current user's organizations",
  5142. "operationId": "orgListCurrentUserOrgs",
  5143. "responses": {
  5144. "200": {
  5145. "$ref": "#/responses/OrganizationList"
  5146. }
  5147. }
  5148. }
  5149. },
  5150. "/user/repos": {
  5151. "get": {
  5152. "produces": [
  5153. "application/json"
  5154. ],
  5155. "tags": [
  5156. "user"
  5157. ],
  5158. "summary": "List the repos that the authenticated user owns or has access to",
  5159. "operationId": "userCurrentListRepos",
  5160. "responses": {
  5161. "200": {
  5162. "$ref": "#/responses/RepositoryList"
  5163. }
  5164. }
  5165. },
  5166. "post": {
  5167. "consumes": [
  5168. "application/json"
  5169. ],
  5170. "produces": [
  5171. "application/json"
  5172. ],
  5173. "tags": [
  5174. "repository",
  5175. "user"
  5176. ],
  5177. "summary": "Create a repository",
  5178. "operationId": "createCurrentUserRepo",
  5179. "parameters": [
  5180. {
  5181. "name": "body",
  5182. "in": "body",
  5183. "schema": {
  5184. "$ref": "#/definitions/CreateRepoOption"
  5185. }
  5186. }
  5187. ],
  5188. "responses": {
  5189. "201": {
  5190. "$ref": "#/responses/Repository"
  5191. }
  5192. }
  5193. }
  5194. },
  5195. "/user/starred": {
  5196. "get": {
  5197. "produces": [
  5198. "application/json"
  5199. ],
  5200. "tags": [
  5201. "user"
  5202. ],
  5203. "summary": "The repos that the authenticated user has starred",
  5204. "operationId": "userCurrentListStarred",
  5205. "responses": {
  5206. "200": {
  5207. "$ref": "#/responses/RepositoryList"
  5208. }
  5209. }
  5210. }
  5211. },
  5212. "/user/starred/{owner}/{repo}": {
  5213. "get": {
  5214. "tags": [
  5215. "user"
  5216. ],
  5217. "summary": "Whether the authenticated is starring the repo",
  5218. "operationId": "userCurrentCheckStarring",
  5219. "parameters": [
  5220. {
  5221. "type": "string",
  5222. "description": "owner of the repo",
  5223. "name": "owner",
  5224. "in": "path",
  5225. "required": true
  5226. },
  5227. {
  5228. "type": "string",
  5229. "description": "name of the repo",
  5230. "name": "repo",
  5231. "in": "path",
  5232. "required": true
  5233. }
  5234. ],
  5235. "responses": {
  5236. "204": {
  5237. "$ref": "#/responses/empty"
  5238. },
  5239. "404": {
  5240. "$ref": "#/responses/notFound"
  5241. }
  5242. }
  5243. },
  5244. "put": {
  5245. "tags": [
  5246. "user"
  5247. ],
  5248. "summary": "Star the given repo",
  5249. "operationId": "userCurrentPutStar",
  5250. "parameters": [
  5251. {
  5252. "type": "string",
  5253. "description": "owner of the repo to star",
  5254. "name": "owner",
  5255. "in": "path",
  5256. "required": true
  5257. },
  5258. {
  5259. "type": "string",
  5260. "description": "name of the repo to star",
  5261. "name": "repo",
  5262. "in": "path",
  5263. "required": true
  5264. }
  5265. ],
  5266. "responses": {
  5267. "204": {
  5268. "$ref": "#/responses/empty"
  5269. }
  5270. }
  5271. },
  5272. "delete": {
  5273. "tags": [
  5274. "user"
  5275. ],
  5276. "summary": "Unstar the given repo",
  5277. "operationId": "userCurrentDeleteStar",
  5278. "parameters": [
  5279. {
  5280. "type": "string",
  5281. "description": "owner of the repo to unstar",
  5282. "name": "owner",
  5283. "in": "path",
  5284. "required": true
  5285. },
  5286. {
  5287. "type": "string",
  5288. "description": "name of the repo to unstar",
  5289. "name": "repo",
  5290. "in": "path",
  5291. "required": true
  5292. }
  5293. ],
  5294. "responses": {
  5295. "204": {
  5296. "$ref": "#/responses/empty"
  5297. }
  5298. }
  5299. }
  5300. },
  5301. "/user/subscriptions": {
  5302. "get": {
  5303. "produces": [
  5304. "application/json"
  5305. ],
  5306. "tags": [
  5307. "user"
  5308. ],
  5309. "summary": "List repositories watched by the authenticated user",
  5310. "operationId": "userCurrentListSubscriptions",
  5311. "responses": {
  5312. "200": {
  5313. "$ref": "#/responses/RepositoryList"
  5314. }
  5315. }
  5316. }
  5317. },
  5318. "/user/times": {
  5319. "get": {
  5320. "produces": [
  5321. "application/json"
  5322. ],
  5323. "tags": [
  5324. "user"
  5325. ],
  5326. "summary": "List the current user's tracked times",
  5327. "operationId": "userCurrentTrackedTimes",
  5328. "responses": {
  5329. "200": {
  5330. "$ref": "#/responses/TrackedTimeList"
  5331. }
  5332. }
  5333. }
  5334. },
  5335. "/user/{username}/orgs": {
  5336. "get": {
  5337. "produces": [
  5338. "application/json"
  5339. ],
  5340. "tags": [
  5341. "organization"
  5342. ],
  5343. "summary": "List a user's organizations",
  5344. "operationId": "orgListUserOrgs",
  5345. "parameters": [
  5346. {
  5347. "type": "string",
  5348. "description": "username of user",
  5349. "name": "username",
  5350. "in": "path",
  5351. "required": true
  5352. }
  5353. ],
  5354. "responses": {
  5355. "200": {
  5356. "$ref": "#/responses/OrganizationList"
  5357. }
  5358. }
  5359. }
  5360. },
  5361. "/users/search": {
  5362. "get": {
  5363. "produces": [
  5364. "application/json"
  5365. ],
  5366. "tags": [
  5367. "user"
  5368. ],
  5369. "summary": "Search for users",
  5370. "operationId": "userSearch",
  5371. "parameters": [
  5372. {
  5373. "type": "string",
  5374. "description": "keyword",
  5375. "name": "q",
  5376. "in": "query"
  5377. },
  5378. {
  5379. "type": "integer",
  5380. "format": "int64",
  5381. "description": "ID of the user to search for",
  5382. "name": "uid",
  5383. "in": "query"
  5384. },
  5385. {
  5386. "type": "integer",
  5387. "description": "maximum number of users to return",
  5388. "name": "limit",
  5389. "in": "query"
  5390. }
  5391. ],
  5392. "responses": {
  5393. "200": {
  5394. "description": "SearchResults of a successful search",
  5395. "schema": {
  5396. "type": "object",
  5397. "properties": {
  5398. "data": {
  5399. "type": "array",
  5400. "items": {
  5401. "$ref": "#/definitions/User"
  5402. }
  5403. },
  5404. "ok": {
  5405. "type": "boolean"
  5406. }
  5407. }
  5408. }
  5409. }
  5410. }
  5411. }
  5412. },
  5413. "/users/{follower}/following/{followee}": {
  5414. "get": {
  5415. "tags": [
  5416. "user"
  5417. ],
  5418. "summary": "Check if one user is following another user",
  5419. "operationId": "userCheckFollowing",
  5420. "parameters": [
  5421. {
  5422. "type": "string",
  5423. "description": "username of following user",
  5424. "name": "follower",
  5425. "in": "path",
  5426. "required": true
  5427. },
  5428. {
  5429. "type": "string",
  5430. "description": "username of followed user",
  5431. "name": "followee",
  5432. "in": "path",
  5433. "required": true
  5434. }
  5435. ],
  5436. "responses": {
  5437. "204": {
  5438. "$ref": "#/responses/empty"
  5439. },
  5440. "404": {
  5441. "$ref": "#/responses/notFound"
  5442. }
  5443. }
  5444. }
  5445. },
  5446. "/users/{username}": {
  5447. "get": {
  5448. "produces": [
  5449. "application/json"
  5450. ],
  5451. "tags": [
  5452. "user"
  5453. ],
  5454. "summary": "Get a user",
  5455. "operationId": "userGet",
  5456. "parameters": [
  5457. {
  5458. "type": "string",
  5459. "description": "username of user to get",
  5460. "name": "username",
  5461. "in": "path",
  5462. "required": true
  5463. }
  5464. ],
  5465. "responses": {
  5466. "200": {
  5467. "$ref": "#/responses/User"
  5468. },
  5469. "404": {
  5470. "$ref": "#/responses/notFound"
  5471. }
  5472. }
  5473. }
  5474. },
  5475. "/users/{username}/followers": {
  5476. "get": {
  5477. "produces": [
  5478. "application/json"
  5479. ],
  5480. "tags": [
  5481. "user"
  5482. ],
  5483. "summary": "List the given user's followers",
  5484. "operationId": "userListFollowers",
  5485. "parameters": [
  5486. {
  5487. "type": "string",
  5488. "description": "username of user",
  5489. "name": "username",
  5490. "in": "path",
  5491. "required": true
  5492. }
  5493. ],
  5494. "responses": {
  5495. "200": {
  5496. "$ref": "#/responses/UserList"
  5497. }
  5498. }
  5499. }
  5500. },
  5501. "/users/{username}/following": {
  5502. "get": {
  5503. "produces": [
  5504. "application/json"
  5505. ],
  5506. "tags": [
  5507. "user"
  5508. ],
  5509. "summary": "List the users that the given user is following",
  5510. "operationId": "userListFollowing",
  5511. "parameters": [
  5512. {
  5513. "type": "string",
  5514. "description": "username of user",
  5515. "name": "username",
  5516. "in": "path",
  5517. "required": true
  5518. }
  5519. ],
  5520. "responses": {
  5521. "200": {
  5522. "$ref": "#/responses/UserList"
  5523. }
  5524. }
  5525. }
  5526. },
  5527. "/users/{username}/gpg_keys": {
  5528. "get": {
  5529. "produces": [
  5530. "application/json"
  5531. ],
  5532. "tags": [
  5533. "user"
  5534. ],
  5535. "summary": "List the given user's GPG keys",
  5536. "operationId": "userListGPGKeys",
  5537. "parameters": [
  5538. {
  5539. "type": "string",
  5540. "description": "username of user",
  5541. "name": "username",
  5542. "in": "path",
  5543. "required": true
  5544. }
  5545. ],
  5546. "responses": {
  5547. "200": {
  5548. "$ref": "#/responses/GPGKeyList"
  5549. }
  5550. }
  5551. }
  5552. },
  5553. "/users/{username}/heatmap": {
  5554. "get": {
  5555. "produces": [
  5556. "application/json"
  5557. ],
  5558. "tags": [
  5559. "user"
  5560. ],
  5561. "summary": "Get a user's heatmap",
  5562. "operationId": "userGetHeatmapData",
  5563. "parameters": [
  5564. {
  5565. "type": "string",
  5566. "description": "username of user to get",
  5567. "name": "username",
  5568. "in": "path",
  5569. "required": true
  5570. }
  5571. ],
  5572. "responses": {
  5573. "200": {
  5574. "$ref": "#/responses/UserHeatmapData"
  5575. },
  5576. "404": {
  5577. "$ref": "#/responses/notFound"
  5578. }
  5579. }
  5580. }
  5581. },
  5582. "/users/{username}/keys": {
  5583. "get": {
  5584. "produces": [
  5585. "application/json"
  5586. ],
  5587. "tags": [
  5588. "user"
  5589. ],
  5590. "summary": "List the given user's public keys",
  5591. "operationId": "userListKeys",
  5592. "parameters": [
  5593. {
  5594. "type": "string",
  5595. "description": "username of user",
  5596. "name": "username",
  5597. "in": "path",
  5598. "required": true
  5599. },
  5600. {
  5601. "type": "string",
  5602. "description": "fingerprint of the key",
  5603. "name": "fingerprint",
  5604. "in": "query"
  5605. }
  5606. ],
  5607. "responses": {
  5608. "200": {
  5609. "$ref": "#/responses/PublicKeyList"
  5610. }
  5611. }
  5612. }
  5613. },
  5614. "/users/{username}/repos": {
  5615. "get": {
  5616. "produces": [
  5617. "application/json"
  5618. ],
  5619. "tags": [
  5620. "user"
  5621. ],
  5622. "summary": "List the repos owned by the given user",
  5623. "operationId": "userListRepos",
  5624. "parameters": [
  5625. {
  5626. "type": "string",
  5627. "description": "username of user",
  5628. "name": "username",
  5629. "in": "path",
  5630. "required": true
  5631. }
  5632. ],
  5633. "responses": {
  5634. "200": {
  5635. "$ref": "#/responses/RepositoryList"
  5636. }
  5637. }
  5638. }
  5639. },
  5640. "/users/{username}/starred": {
  5641. "get": {
  5642. "produces": [
  5643. "application/json"
  5644. ],
  5645. "tags": [
  5646. "user"
  5647. ],
  5648. "summary": "The repos that the given user has starred",
  5649. "operationId": "userListStarred",
  5650. "parameters": [
  5651. {
  5652. "type": "string",
  5653. "description": "username of user",
  5654. "name": "username",
  5655. "in": "path",
  5656. "required": true
  5657. }
  5658. ],
  5659. "responses": {
  5660. "200": {
  5661. "$ref": "#/responses/RepositoryList"
  5662. }
  5663. }
  5664. }
  5665. },
  5666. "/users/{username}/subscriptions": {
  5667. "get": {
  5668. "produces": [
  5669. "application/json"
  5670. ],
  5671. "tags": [
  5672. "user"
  5673. ],
  5674. "summary": "List the repositories watched by a user",
  5675. "operationId": "userListSubscriptions",
  5676. "parameters": [
  5677. {
  5678. "type": "string",
  5679. "description": "username of the user",
  5680. "name": "username",
  5681. "in": "path",
  5682. "required": true
  5683. }
  5684. ],
  5685. "responses": {
  5686. "200": {
  5687. "$ref": "#/responses/RepositoryList"
  5688. }
  5689. }
  5690. }
  5691. },
  5692. "/users/{username}/tokens": {
  5693. "get": {
  5694. "produces": [
  5695. "application/json"
  5696. ],
  5697. "tags": [
  5698. "user"
  5699. ],
  5700. "summary": "List the authenticated user's access tokens",
  5701. "operationId": "userGetTokens",
  5702. "parameters": [
  5703. {
  5704. "type": "string",
  5705. "description": "username of user",
  5706. "name": "username",
  5707. "in": "path",
  5708. "required": true
  5709. }
  5710. ],
  5711. "responses": {
  5712. "200": {
  5713. "$ref": "#/responses/AccessTokenList"
  5714. }
  5715. }
  5716. },
  5717. "post": {
  5718. "consumes": [
  5719. "application/json"
  5720. ],
  5721. "produces": [
  5722. "application/json"
  5723. ],
  5724. "tags": [
  5725. "user"
  5726. ],
  5727. "summary": "Create an access token",
  5728. "operationId": "userCreateToken",
  5729. "parameters": [
  5730. {
  5731. "type": "string",
  5732. "x-go-name": "Name",
  5733. "description": "username of user",
  5734. "name": "username",
  5735. "in": "path",
  5736. "required": true
  5737. },
  5738. {
  5739. "name": "accessToken",
  5740. "in": "body",
  5741. "schema": {
  5742. "type": "object",
  5743. "required": [
  5744. "name"
  5745. ],
  5746. "properties": {
  5747. "name": {
  5748. "type": "string"
  5749. }
  5750. }
  5751. }
  5752. }
  5753. ],
  5754. "responses": {
  5755. "200": {
  5756. "$ref": "#/responses/AccessToken"
  5757. }
  5758. }
  5759. }
  5760. },
  5761. "/users/{username}/tokens/{token}": {
  5762. "delete": {
  5763. "produces": [
  5764. "application/json"
  5765. ],
  5766. "tags": [
  5767. "user"
  5768. ],
  5769. "summary": "delete an access token",
  5770. "operationId": "userDeleteAccessToken",
  5771. "parameters": [
  5772. {
  5773. "type": "string",
  5774. "description": "username of user",
  5775. "name": "username",
  5776. "in": "path",
  5777. "required": true
  5778. },
  5779. {
  5780. "type": "integer",
  5781. "format": "int64",
  5782. "description": "token to be deleted",
  5783. "name": "token",
  5784. "in": "path",
  5785. "required": true
  5786. }
  5787. ],
  5788. "responses": {
  5789. "204": {
  5790. "$ref": "#/responses/empty"
  5791. }
  5792. }
  5793. }
  5794. },
  5795. "/version": {
  5796. "get": {
  5797. "produces": [
  5798. "application/json"
  5799. ],
  5800. "tags": [
  5801. "miscellaneous"
  5802. ],
  5803. "summary": "Returns the version of the Gitea application",
  5804. "operationId": "getVersion",
  5805. "responses": {
  5806. "200": {
  5807. "$ref": "#/responses/ServerVersion"
  5808. }
  5809. }
  5810. }
  5811. }
  5812. },
  5813. "definitions": {
  5814. "AddCollaboratorOption": {
  5815. "description": "AddCollaboratorOption options when adding a user as a collaborator of a repository",
  5816. "type": "object",
  5817. "properties": {
  5818. "permission": {
  5819. "type": "string",
  5820. "x-go-name": "Permission"
  5821. }
  5822. },
  5823. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5824. },
  5825. "AddTimeOption": {
  5826. "description": "AddTimeOption options for adding time to an issue",
  5827. "type": "object",
  5828. "required": [
  5829. "time"
  5830. ],
  5831. "properties": {
  5832. "time": {
  5833. "description": "time in seconds",
  5834. "type": "integer",
  5835. "format": "int64",
  5836. "x-go-name": "Time"
  5837. }
  5838. },
  5839. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5840. },
  5841. "Attachment": {
  5842. "description": "Attachment a generic attachment",
  5843. "type": "object",
  5844. "properties": {
  5845. "browser_download_url": {
  5846. "type": "string",
  5847. "x-go-name": "DownloadURL"
  5848. },
  5849. "created_at": {
  5850. "type": "string",
  5851. "format": "date-time",
  5852. "x-go-name": "Created"
  5853. },
  5854. "download_count": {
  5855. "type": "integer",
  5856. "format": "int64",
  5857. "x-go-name": "DownloadCount"
  5858. },
  5859. "id": {
  5860. "type": "integer",
  5861. "format": "int64",
  5862. "x-go-name": "ID"
  5863. },
  5864. "name": {
  5865. "type": "string",
  5866. "x-go-name": "Name"
  5867. },
  5868. "size": {
  5869. "type": "integer",
  5870. "format": "int64",
  5871. "x-go-name": "Size"
  5872. },
  5873. "uuid": {
  5874. "type": "string",
  5875. "x-go-name": "UUID"
  5876. }
  5877. },
  5878. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5879. },
  5880. "Branch": {
  5881. "description": "Branch represents a repository branch",
  5882. "type": "object",
  5883. "properties": {
  5884. "commit": {
  5885. "$ref": "#/definitions/PayloadCommit"
  5886. },
  5887. "name": {
  5888. "type": "string",
  5889. "x-go-name": "Name"
  5890. }
  5891. },
  5892. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5893. },
  5894. "Comment": {
  5895. "description": "Comment represents a comment on a commit or issue",
  5896. "type": "object",
  5897. "properties": {
  5898. "body": {
  5899. "type": "string",
  5900. "x-go-name": "Body"
  5901. },
  5902. "created_at": {
  5903. "type": "string",
  5904. "format": "date-time",
  5905. "x-go-name": "Created"
  5906. },
  5907. "html_url": {
  5908. "type": "string",
  5909. "x-go-name": "HTMLURL"
  5910. },
  5911. "id": {
  5912. "type": "integer",
  5913. "format": "int64",
  5914. "x-go-name": "ID"
  5915. },
  5916. "issue_url": {
  5917. "type": "string",
  5918. "x-go-name": "IssueURL"
  5919. },
  5920. "pull_request_url": {
  5921. "type": "string",
  5922. "x-go-name": "PRURL"
  5923. },
  5924. "updated_at": {
  5925. "type": "string",
  5926. "format": "date-time",
  5927. "x-go-name": "Updated"
  5928. },
  5929. "user": {
  5930. "$ref": "#/definitions/User"
  5931. }
  5932. },
  5933. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5934. },
  5935. "CreateEmailOption": {
  5936. "description": "CreateEmailOption options when creating email addresses",
  5937. "type": "object",
  5938. "properties": {
  5939. "emails": {
  5940. "description": "email addresses to add",
  5941. "type": "array",
  5942. "items": {
  5943. "type": "string"
  5944. },
  5945. "x-go-name": "Emails"
  5946. }
  5947. },
  5948. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5949. },
  5950. "CreateForkOption": {
  5951. "description": "CreateForkOption options for creating a fork",
  5952. "type": "object",
  5953. "properties": {
  5954. "organization": {
  5955. "description": "organization name, if forking into an organization",
  5956. "type": "string",
  5957. "x-go-name": "Organization"
  5958. }
  5959. },
  5960. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5961. },
  5962. "CreateGPGKeyOption": {
  5963. "description": "CreateGPGKeyOption options create user GPG key",
  5964. "type": "object",
  5965. "required": [
  5966. "armored_public_key"
  5967. ],
  5968. "properties": {
  5969. "armored_public_key": {
  5970. "description": "An armored GPG key to add",
  5971. "type": "string",
  5972. "uniqueItems": true,
  5973. "x-go-name": "ArmoredKey"
  5974. }
  5975. },
  5976. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5977. },
  5978. "CreateHookOption": {
  5979. "description": "CreateHookOption options when create a hook",
  5980. "type": "object",
  5981. "required": [
  5982. "type",
  5983. "config"
  5984. ],
  5985. "properties": {
  5986. "active": {
  5987. "type": "boolean",
  5988. "default": false,
  5989. "x-go-name": "Active"
  5990. },
  5991. "config": {
  5992. "type": "object",
  5993. "additionalProperties": {
  5994. "type": "string"
  5995. },
  5996. "x-go-name": "Config"
  5997. },
  5998. "events": {
  5999. "type": "array",
  6000. "items": {
  6001. "type": "string"
  6002. },
  6003. "x-go-name": "Events"
  6004. },
  6005. "type": {
  6006. "type": "string",
  6007. "enum": [
  6008. "gitea",
  6009. "gogs",
  6010. "slack",
  6011. "discord"
  6012. ],
  6013. "x-go-name": "Type"
  6014. }
  6015. },
  6016. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6017. },
  6018. "CreateIssueCommentOption": {
  6019. "description": "CreateIssueCommentOption options for creating a comment on an issue",
  6020. "type": "object",
  6021. "required": [
  6022. "body"
  6023. ],
  6024. "properties": {
  6025. "body": {
  6026. "type": "string",
  6027. "x-go-name": "Body"
  6028. }
  6029. },
  6030. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6031. },
  6032. "CreateIssueOption": {
  6033. "description": "CreateIssueOption options to create one issue",
  6034. "type": "object",
  6035. "required": [
  6036. "title"
  6037. ],
  6038. "properties": {
  6039. "assignee": {
  6040. "description": "username of assignee",
  6041. "type": "string",
  6042. "x-go-name": "Assignee"
  6043. },
  6044. "assignees": {
  6045. "type": "array",
  6046. "items": {
  6047. "type": "string"
  6048. },
  6049. "x-go-name": "Assignees"
  6050. },
  6051. "body": {
  6052. "type": "string",
  6053. "x-go-name": "Body"
  6054. },
  6055. "closed": {
  6056. "type": "boolean",
  6057. "x-go-name": "Closed"
  6058. },
  6059. "due_date": {
  6060. "type": "string",
  6061. "format": "date-time",
  6062. "x-go-name": "Deadline"
  6063. },
  6064. "labels": {
  6065. "description": "list of label ids",
  6066. "type": "array",
  6067. "items": {
  6068. "type": "integer",
  6069. "format": "int64"
  6070. },
  6071. "x-go-name": "Labels"
  6072. },
  6073. "milestone": {
  6074. "description": "milestone id",
  6075. "type": "integer",
  6076. "format": "int64",
  6077. "x-go-name": "Milestone"
  6078. },
  6079. "title": {
  6080. "type": "string",
  6081. "x-go-name": "Title"
  6082. }
  6083. },
  6084. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6085. },
  6086. "CreateKeyOption": {
  6087. "description": "CreateKeyOption options when creating a key",
  6088. "type": "object",
  6089. "required": [
  6090. "title",
  6091. "key"
  6092. ],
  6093. "properties": {
  6094. "key": {
  6095. "description": "An armored SSH key to add",
  6096. "type": "string",
  6097. "uniqueItems": true,
  6098. "x-go-name": "Key"
  6099. },
  6100. "read_only": {
  6101. "description": "Describe if the key has only read access or read/write",
  6102. "type": "boolean",
  6103. "x-go-name": "ReadOnly"
  6104. },
  6105. "title": {
  6106. "description": "Title of the key to add",
  6107. "type": "string",
  6108. "uniqueItems": true,
  6109. "x-go-name": "Title"
  6110. }
  6111. },
  6112. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6113. },
  6114. "CreateLabelOption": {
  6115. "description": "CreateLabelOption options for creating a label",
  6116. "type": "object",
  6117. "required": [
  6118. "name",
  6119. "color"
  6120. ],
  6121. "properties": {
  6122. "color": {
  6123. "type": "string",
  6124. "x-go-name": "Color",
  6125. "example": "#00aabb"
  6126. },
  6127. "name": {
  6128. "type": "string",
  6129. "x-go-name": "Name"
  6130. }
  6131. },
  6132. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6133. },
  6134. "CreateMilestoneOption": {
  6135. "description": "CreateMilestoneOption options for creating a milestone",
  6136. "type": "object",
  6137. "properties": {
  6138. "description": {
  6139. "type": "string",
  6140. "x-go-name": "Description"
  6141. },
  6142. "due_on": {
  6143. "type": "string",
  6144. "format": "date-time",
  6145. "x-go-name": "Deadline"
  6146. },
  6147. "title": {
  6148. "type": "string",
  6149. "x-go-name": "Title"
  6150. }
  6151. },
  6152. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6153. },
  6154. "CreateOrgOption": {
  6155. "description": "CreateOrgOption options for creating an organization",
  6156. "type": "object",
  6157. "required": [
  6158. "username"
  6159. ],
  6160. "properties": {
  6161. "description": {
  6162. "type": "string",
  6163. "x-go-name": "Description"
  6164. },
  6165. "full_name": {
  6166. "type": "string",
  6167. "x-go-name": "FullName"
  6168. },
  6169. "location": {
  6170. "type": "string",
  6171. "x-go-name": "Location"
  6172. },
  6173. "username": {
  6174. "type": "string",
  6175. "x-go-name": "UserName"
  6176. },
  6177. "website": {
  6178. "type": "string",
  6179. "x-go-name": "Website"
  6180. }
  6181. },
  6182. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6183. },
  6184. "CreatePullRequestOption": {
  6185. "description": "CreatePullRequestOption options when creating a pull request",
  6186. "type": "object",
  6187. "properties": {
  6188. "assignee": {
  6189. "type": "string",
  6190. "x-go-name": "Assignee"
  6191. },
  6192. "assignees": {
  6193. "type": "array",
  6194. "items": {
  6195. "type": "string"
  6196. },
  6197. "x-go-name": "Assignees"
  6198. },
  6199. "base": {
  6200. "type": "string",
  6201. "x-go-name": "Base"
  6202. },
  6203. "body": {
  6204. "type": "string",
  6205. "x-go-name": "Body"
  6206. },
  6207. "due_date": {
  6208. "type": "string",
  6209. "format": "date-time",
  6210. "x-go-name": "Deadline"
  6211. },
  6212. "head": {
  6213. "type": "string",
  6214. "x-go-name": "Head"
  6215. },
  6216. "labels": {
  6217. "type": "array",
  6218. "items": {
  6219. "type": "integer",
  6220. "format": "int64"
  6221. },
  6222. "x-go-name": "Labels"
  6223. },
  6224. "milestone": {
  6225. "type": "integer",
  6226. "format": "int64",
  6227. "x-go-name": "Milestone"
  6228. },
  6229. "title": {
  6230. "type": "string",
  6231. "x-go-name": "Title"
  6232. }
  6233. },
  6234. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6235. },
  6236. "CreateReleaseOption": {
  6237. "description": "CreateReleaseOption options when creating a release",
  6238. "type": "object",
  6239. "required": [
  6240. "tag_name"
  6241. ],
  6242. "properties": {
  6243. "body": {
  6244. "type": "string",
  6245. "x-go-name": "Note"
  6246. },
  6247. "draft": {
  6248. "type": "boolean",
  6249. "x-go-name": "IsDraft"
  6250. },
  6251. "name": {
  6252. "type": "string",
  6253. "x-go-name": "Title"
  6254. },
  6255. "prerelease": {
  6256. "type": "boolean",
  6257. "x-go-name": "IsPrerelease"
  6258. },
  6259. "tag_name": {
  6260. "type": "string",
  6261. "x-go-name": "TagName"
  6262. },
  6263. "target_commitish": {
  6264. "type": "string",
  6265. "x-go-name": "Target"
  6266. }
  6267. },
  6268. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6269. },
  6270. "CreateRepoOption": {
  6271. "description": "CreateRepoOption options when creating repository",
  6272. "type": "object",
  6273. "required": [
  6274. "name"
  6275. ],
  6276. "properties": {
  6277. "auto_init": {
  6278. "description": "Whether the repository should be auto-intialized?",
  6279. "type": "boolean",
  6280. "x-go-name": "AutoInit"
  6281. },
  6282. "description": {
  6283. "description": "Description of the repository to create",
  6284. "type": "string",
  6285. "x-go-name": "Description"
  6286. },
  6287. "gitignores": {
  6288. "description": "Gitignores to use",
  6289. "type": "string",
  6290. "x-go-name": "Gitignores"
  6291. },
  6292. "license": {
  6293. "description": "License to use",
  6294. "type": "string",
  6295. "x-go-name": "License"
  6296. },
  6297. "name": {
  6298. "description": "Name of the repository to create",
  6299. "type": "string",
  6300. "uniqueItems": true,
  6301. "x-go-name": "Name"
  6302. },
  6303. "private": {
  6304. "description": "Whether the repository is private",
  6305. "type": "boolean",
  6306. "x-go-name": "Private"
  6307. },
  6308. "readme": {
  6309. "description": "Readme of the repository to create",
  6310. "type": "string",
  6311. "x-go-name": "Readme"
  6312. }
  6313. },
  6314. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6315. },
  6316. "CreateStatusOption": {
  6317. "description": "CreateStatusOption holds the information needed to create a new Status for a Commit",
  6318. "type": "object",
  6319. "properties": {
  6320. "context": {
  6321. "type": "string",
  6322. "x-go-name": "Context"
  6323. },
  6324. "description": {
  6325. "type": "string",
  6326. "x-go-name": "Description"
  6327. },
  6328. "state": {
  6329. "$ref": "#/definitions/StatusState"
  6330. },
  6331. "target_url": {
  6332. "type": "string",
  6333. "x-go-name": "TargetURL"
  6334. }
  6335. },
  6336. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6337. },
  6338. "CreateTeamOption": {
  6339. "description": "CreateTeamOption options for creating a team",
  6340. "type": "object",
  6341. "required": [
  6342. "name"
  6343. ],
  6344. "properties": {
  6345. "description": {
  6346. "type": "string",
  6347. "x-go-name": "Description"
  6348. },
  6349. "name": {
  6350. "type": "string",
  6351. "x-go-name": "Name"
  6352. },
  6353. "permission": {
  6354. "type": "string",
  6355. "enum": [
  6356. "read",
  6357. "write",
  6358. "admin"
  6359. ],
  6360. "x-go-name": "Permission"
  6361. },
  6362. "units": {
  6363. "type": "array",
  6364. "enum": [
  6365. "repo.code",
  6366. "repo.issues",
  6367. "repo.ext_issues",
  6368. "repo.wiki",
  6369. "repo.pulls",
  6370. "repo.releases",
  6371. "repo.ext_wiki"
  6372. ],
  6373. "items": {
  6374. "type": "string"
  6375. },
  6376. "x-go-name": "Units"
  6377. }
  6378. },
  6379. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6380. },
  6381. "CreateUserOption": {
  6382. "description": "CreateUserOption create user options",
  6383. "type": "object",
  6384. "required": [
  6385. "username",
  6386. "email",
  6387. "password"
  6388. ],
  6389. "properties": {
  6390. "email": {
  6391. "type": "string",
  6392. "format": "email",
  6393. "x-go-name": "Email"
  6394. },
  6395. "full_name": {
  6396. "type": "string",
  6397. "x-go-name": "FullName"
  6398. },
  6399. "login_name": {
  6400. "type": "string",
  6401. "x-go-name": "LoginName"
  6402. },
  6403. "password": {
  6404. "type": "string",
  6405. "x-go-name": "Password"
  6406. },
  6407. "send_notify": {
  6408. "type": "boolean",
  6409. "x-go-name": "SendNotify"
  6410. },
  6411. "source_id": {
  6412. "type": "integer",
  6413. "format": "int64",
  6414. "x-go-name": "SourceID"
  6415. },
  6416. "username": {
  6417. "type": "string",
  6418. "x-go-name": "Username"
  6419. }
  6420. },
  6421. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6422. },
  6423. "DeleteEmailOption": {
  6424. "description": "DeleteEmailOption options when deleting email addresses",
  6425. "type": "object",
  6426. "properties": {
  6427. "emails": {
  6428. "description": "email addresses to delete",
  6429. "type": "array",
  6430. "items": {
  6431. "type": "string"
  6432. },
  6433. "x-go-name": "Emails"
  6434. }
  6435. },
  6436. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6437. },
  6438. "DeployKey": {
  6439. "description": "DeployKey a deploy key",
  6440. "type": "object",
  6441. "properties": {
  6442. "created_at": {
  6443. "type": "string",
  6444. "format": "date-time",
  6445. "x-go-name": "Created"
  6446. },
  6447. "fingerprint": {
  6448. "type": "string",
  6449. "x-go-name": "Fingerprint"
  6450. },
  6451. "id": {
  6452. "type": "integer",
  6453. "format": "int64",
  6454. "x-go-name": "ID"
  6455. },
  6456. "key": {
  6457. "type": "string",
  6458. "x-go-name": "Key"
  6459. },
  6460. "key_id": {
  6461. "type": "integer",
  6462. "format": "int64",
  6463. "x-go-name": "KeyID"
  6464. },
  6465. "read_only": {
  6466. "type": "boolean",
  6467. "x-go-name": "ReadOnly"
  6468. },
  6469. "repository": {
  6470. "$ref": "#/definitions/Repository"
  6471. },
  6472. "title": {
  6473. "type": "string",
  6474. "x-go-name": "Title"
  6475. },
  6476. "url": {
  6477. "type": "string",
  6478. "x-go-name": "URL"
  6479. }
  6480. },
  6481. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6482. },
  6483. "EditAttachmentOptions": {
  6484. "description": "EditAttachmentOptions options for editing attachments",
  6485. "type": "object",
  6486. "properties": {
  6487. "name": {
  6488. "type": "string",
  6489. "x-go-name": "Name"
  6490. }
  6491. },
  6492. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6493. },
  6494. "EditDeadlineOption": {
  6495. "description": "EditDeadlineOption options for creating a deadline",
  6496. "type": "object",
  6497. "required": [
  6498. "due_date"
  6499. ],
  6500. "properties": {
  6501. "due_date": {
  6502. "type": "string",
  6503. "format": "date-time",
  6504. "x-go-name": "Deadline"
  6505. }
  6506. },
  6507. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6508. },
  6509. "EditHookOption": {
  6510. "description": "EditHookOption options when modify one hook",
  6511. "type": "object",
  6512. "properties": {
  6513. "active": {
  6514. "type": "boolean",
  6515. "x-go-name": "Active"
  6516. },
  6517. "config": {
  6518. "type": "object",
  6519. "additionalProperties": {
  6520. "type": "string"
  6521. },
  6522. "x-go-name": "Config"
  6523. },
  6524. "events": {
  6525. "type": "array",
  6526. "items": {
  6527. "type": "string"
  6528. },
  6529. "x-go-name": "Events"
  6530. }
  6531. },
  6532. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6533. },
  6534. "EditIssueCommentOption": {
  6535. "description": "EditIssueCommentOption options for editing a comment",
  6536. "type": "object",
  6537. "required": [
  6538. "body"
  6539. ],
  6540. "properties": {
  6541. "body": {
  6542. "type": "string",
  6543. "x-go-name": "Body"
  6544. }
  6545. },
  6546. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6547. },
  6548. "EditIssueOption": {
  6549. "description": "EditIssueOption options for editing an issue",
  6550. "type": "object",
  6551. "properties": {
  6552. "assignee": {
  6553. "type": "string",
  6554. "x-go-name": "Assignee"
  6555. },
  6556. "assignees": {
  6557. "type": "array",
  6558. "items": {
  6559. "type": "string"
  6560. },
  6561. "x-go-name": "Assignees"
  6562. },
  6563. "body": {
  6564. "type": "string",
  6565. "x-go-name": "Body"
  6566. },
  6567. "due_date": {
  6568. "type": "string",
  6569. "format": "date-time",
  6570. "x-go-name": "Deadline"
  6571. },
  6572. "milestone": {
  6573. "type": "integer",
  6574. "format": "int64",
  6575. "x-go-name": "Milestone"
  6576. },
  6577. "state": {
  6578. "type": "string",
  6579. "x-go-name": "State"
  6580. },
  6581. "title": {
  6582. "type": "string",
  6583. "x-go-name": "Title"
  6584. }
  6585. },
  6586. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6587. },
  6588. "EditLabelOption": {
  6589. "description": "EditLabelOption options for editing a label",
  6590. "type": "object",
  6591. "properties": {
  6592. "color": {
  6593. "type": "string",
  6594. "x-go-name": "Color"
  6595. },
  6596. "name": {
  6597. "type": "string",
  6598. "x-go-name": "Name"
  6599. }
  6600. },
  6601. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6602. },
  6603. "EditMilestoneOption": {
  6604. "description": "EditMilestoneOption options for editing a milestone",
  6605. "type": "object",
  6606. "properties": {
  6607. "description": {
  6608. "type": "string",
  6609. "x-go-name": "Description"
  6610. },
  6611. "due_on": {
  6612. "type": "string",
  6613. "format": "date-time",
  6614. "x-go-name": "Deadline"
  6615. },
  6616. "state": {
  6617. "type": "string",
  6618. "x-go-name": "State"
  6619. },
  6620. "title": {
  6621. "type": "string",
  6622. "x-go-name": "Title"
  6623. }
  6624. },
  6625. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6626. },
  6627. "EditOrgOption": {
  6628. "description": "EditOrgOption options for editing an organization",
  6629. "type": "object",
  6630. "properties": {
  6631. "description": {
  6632. "type": "string",
  6633. "x-go-name": "Description"
  6634. },
  6635. "full_name": {
  6636. "type": "string",
  6637. "x-go-name": "FullName"
  6638. },
  6639. "location": {
  6640. "type": "string",
  6641. "x-go-name": "Location"
  6642. },
  6643. "website": {
  6644. "type": "string",
  6645. "x-go-name": "Website"
  6646. }
  6647. },
  6648. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6649. },
  6650. "EditPullRequestOption": {
  6651. "description": "EditPullRequestOption options when modify pull request",
  6652. "type": "object",
  6653. "properties": {
  6654. "assignee": {
  6655. "type": "string",
  6656. "x-go-name": "Assignee"
  6657. },
  6658. "assignees": {
  6659. "type": "array",
  6660. "items": {
  6661. "type": "string"
  6662. },
  6663. "x-go-name": "Assignees"
  6664. },
  6665. "body": {
  6666. "type": "string",
  6667. "x-go-name": "Body"
  6668. },
  6669. "due_date": {
  6670. "type": "string",
  6671. "format": "date-time",
  6672. "x-go-name": "Deadline"
  6673. },
  6674. "labels": {
  6675. "type": "array",
  6676. "items": {
  6677. "type": "integer",
  6678. "format": "int64"
  6679. },
  6680. "x-go-name": "Labels"
  6681. },
  6682. "milestone": {
  6683. "type": "integer",
  6684. "format": "int64",
  6685. "x-go-name": "Milestone"
  6686. },
  6687. "state": {
  6688. "type": "string",
  6689. "x-go-name": "State"
  6690. },
  6691. "title": {
  6692. "type": "string",
  6693. "x-go-name": "Title"
  6694. }
  6695. },
  6696. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6697. },
  6698. "EditReleaseOption": {
  6699. "description": "EditReleaseOption options when editing a release",
  6700. "type": "object",
  6701. "properties": {
  6702. "body": {
  6703. "type": "string",
  6704. "x-go-name": "Note"
  6705. },
  6706. "draft": {
  6707. "type": "boolean",
  6708. "x-go-name": "IsDraft"
  6709. },
  6710. "name": {
  6711. "type": "string",
  6712. "x-go-name": "Title"
  6713. },
  6714. "prerelease": {
  6715. "type": "boolean",
  6716. "x-go-name": "IsPrerelease"
  6717. },
  6718. "tag_name": {
  6719. "type": "string",
  6720. "x-go-name": "TagName"
  6721. },
  6722. "target_commitish": {
  6723. "type": "string",
  6724. "x-go-name": "Target"
  6725. }
  6726. },
  6727. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6728. },
  6729. "EditTeamOption": {
  6730. "description": "EditTeamOption options for editing a team",
  6731. "type": "object",
  6732. "required": [
  6733. "name"
  6734. ],
  6735. "properties": {
  6736. "description": {
  6737. "type": "string",
  6738. "x-go-name": "Description"
  6739. },
  6740. "name": {
  6741. "type": "string",
  6742. "x-go-name": "Name"
  6743. },
  6744. "permission": {
  6745. "type": "string",
  6746. "enum": [
  6747. "read",
  6748. "write",
  6749. "admin"
  6750. ],
  6751. "x-go-name": "Permission"
  6752. },
  6753. "units": {
  6754. "type": "array",
  6755. "enum": [
  6756. "repo.code",
  6757. "repo.issues",
  6758. "repo.ext_issues",
  6759. "repo.wiki",
  6760. "repo.pulls",
  6761. "repo.releases",
  6762. "repo.ext_wiki"
  6763. ],
  6764. "items": {
  6765. "type": "string"
  6766. },
  6767. "x-go-name": "Units"
  6768. }
  6769. },
  6770. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6771. },
  6772. "EditUserOption": {
  6773. "description": "EditUserOption edit user options",
  6774. "type": "object",
  6775. "required": [
  6776. "email"
  6777. ],
  6778. "properties": {
  6779. "active": {
  6780. "type": "boolean",
  6781. "x-go-name": "Active"
  6782. },
  6783. "admin": {
  6784. "type": "boolean",
  6785. "x-go-name": "Admin"
  6786. },
  6787. "allow_create_organization": {
  6788. "type": "boolean",
  6789. "x-go-name": "AllowCreateOrganization"
  6790. },
  6791. "allow_git_hook": {
  6792. "type": "boolean",
  6793. "x-go-name": "AllowGitHook"
  6794. },
  6795. "allow_import_local": {
  6796. "type": "boolean",
  6797. "x-go-name": "AllowImportLocal"
  6798. },
  6799. "email": {
  6800. "type": "string",
  6801. "format": "email",
  6802. "x-go-name": "Email"
  6803. },
  6804. "full_name": {
  6805. "type": "string",
  6806. "x-go-name": "FullName"
  6807. },
  6808. "location": {
  6809. "type": "string",
  6810. "x-go-name": "Location"
  6811. },
  6812. "login_name": {
  6813. "type": "string",
  6814. "x-go-name": "LoginName"
  6815. },
  6816. "max_repo_creation": {
  6817. "type": "integer",
  6818. "format": "int64",
  6819. "x-go-name": "MaxRepoCreation"
  6820. },
  6821. "password": {
  6822. "type": "string",
  6823. "x-go-name": "Password"
  6824. },
  6825. "prohibit_login": {
  6826. "type": "boolean",
  6827. "x-go-name": "ProhibitLogin"
  6828. },
  6829. "source_id": {
  6830. "type": "integer",
  6831. "format": "int64",
  6832. "x-go-name": "SourceID"
  6833. },
  6834. "website": {
  6835. "type": "string",
  6836. "x-go-name": "Website"
  6837. }
  6838. },
  6839. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6840. },
  6841. "Email": {
  6842. "description": "Email an email address belonging to a user",
  6843. "type": "object",
  6844. "properties": {
  6845. "email": {
  6846. "type": "string",
  6847. "format": "email",
  6848. "x-go-name": "Email"
  6849. },
  6850. "primary": {
  6851. "type": "boolean",
  6852. "x-go-name": "Primary"
  6853. },
  6854. "verified": {
  6855. "type": "boolean",
  6856. "x-go-name": "Verified"
  6857. }
  6858. },
  6859. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6860. },
  6861. "GPGKey": {
  6862. "description": "GPGKey a user GPG key to sign commit and tag in repository",
  6863. "type": "object",
  6864. "properties": {
  6865. "can_certify": {
  6866. "type": "boolean",
  6867. "x-go-name": "CanCertify"
  6868. },
  6869. "can_encrypt_comms": {
  6870. "type": "boolean",
  6871. "x-go-name": "CanEncryptComms"
  6872. },
  6873. "can_encrypt_storage": {
  6874. "type": "boolean",
  6875. "x-go-name": "CanEncryptStorage"
  6876. },
  6877. "can_sign": {
  6878. "type": "boolean",
  6879. "x-go-name": "CanSign"
  6880. },
  6881. "created_at": {
  6882. "type": "string",
  6883. "format": "date-time",
  6884. "x-go-name": "Created"
  6885. },
  6886. "emails": {
  6887. "type": "array",
  6888. "items": {
  6889. "$ref": "#/definitions/GPGKeyEmail"
  6890. },
  6891. "x-go-name": "Emails"
  6892. },
  6893. "expires_at": {
  6894. "type": "string",
  6895. "format": "date-time",
  6896. "x-go-name": "Expires"
  6897. },
  6898. "id": {
  6899. "type": "integer",
  6900. "format": "int64",
  6901. "x-go-name": "ID"
  6902. },
  6903. "key_id": {
  6904. "type": "string",
  6905. "x-go-name": "KeyID"
  6906. },
  6907. "primary_key_id": {
  6908. "type": "string",
  6909. "x-go-name": "PrimaryKeyID"
  6910. },
  6911. "public_key": {
  6912. "type": "string",
  6913. "x-go-name": "PublicKey"
  6914. },
  6915. "subkeys": {
  6916. "type": "array",
  6917. "items": {
  6918. "$ref": "#/definitions/GPGKey"
  6919. },
  6920. "x-go-name": "SubsKey"
  6921. }
  6922. },
  6923. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6924. },
  6925. "GPGKeyEmail": {
  6926. "description": "GPGKeyEmail an email attached to a GPGKey",
  6927. "type": "object",
  6928. "properties": {
  6929. "email": {
  6930. "type": "string",
  6931. "x-go-name": "Email"
  6932. },
  6933. "verified": {
  6934. "type": "boolean",
  6935. "x-go-name": "Verified"
  6936. }
  6937. },
  6938. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6939. },
  6940. "Issue": {
  6941. "description": "Issue represents an issue in a repository",
  6942. "type": "object",
  6943. "properties": {
  6944. "assignee": {
  6945. "$ref": "#/definitions/User"
  6946. },
  6947. "assignees": {
  6948. "type": "array",
  6949. "items": {
  6950. "$ref": "#/definitions/User"
  6951. },
  6952. "x-go-name": "Assignees"
  6953. },
  6954. "body": {
  6955. "type": "string",
  6956. "x-go-name": "Body"
  6957. },
  6958. "closed_at": {
  6959. "type": "string",
  6960. "format": "date-time",
  6961. "x-go-name": "Closed"
  6962. },
  6963. "comments": {
  6964. "type": "integer",
  6965. "format": "int64",
  6966. "x-go-name": "Comments"
  6967. },
  6968. "created_at": {
  6969. "type": "string",
  6970. "format": "date-time",
  6971. "x-go-name": "Created"
  6972. },
  6973. "due_date": {
  6974. "type": "string",
  6975. "format": "date-time",
  6976. "x-go-name": "Deadline"
  6977. },
  6978. "id": {
  6979. "type": "integer",
  6980. "format": "int64",
  6981. "x-go-name": "ID"
  6982. },
  6983. "labels": {
  6984. "type": "array",
  6985. "items": {
  6986. "$ref": "#/definitions/Label"
  6987. },
  6988. "x-go-name": "Labels"
  6989. },
  6990. "milestone": {
  6991. "$ref": "#/definitions/Milestone"
  6992. },
  6993. "number": {
  6994. "type": "integer",
  6995. "format": "int64",
  6996. "x-go-name": "Index"
  6997. },
  6998. "pull_request": {
  6999. "$ref": "#/definitions/PullRequestMeta"
  7000. },
  7001. "state": {
  7002. "$ref": "#/definitions/StateType"
  7003. },
  7004. "title": {
  7005. "type": "string",
  7006. "x-go-name": "Title"
  7007. },
  7008. "updated_at": {
  7009. "type": "string",
  7010. "format": "date-time",
  7011. "x-go-name": "Updated"
  7012. },
  7013. "url": {
  7014. "type": "string",
  7015. "x-go-name": "URL"
  7016. },
  7017. "user": {
  7018. "$ref": "#/definitions/User"
  7019. }
  7020. },
  7021. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7022. },
  7023. "IssueDeadline": {
  7024. "description": "IssueDeadline represents an issue deadline",
  7025. "type": "object",
  7026. "properties": {
  7027. "due_date": {
  7028. "type": "string",
  7029. "format": "date-time",
  7030. "x-go-name": "Deadline"
  7031. }
  7032. },
  7033. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7034. },
  7035. "IssueLabelsOption": {
  7036. "description": "IssueLabelsOption a collection of labels",
  7037. "type": "object",
  7038. "properties": {
  7039. "labels": {
  7040. "description": "list of label IDs",
  7041. "type": "array",
  7042. "items": {
  7043. "type": "integer",
  7044. "format": "int64"
  7045. },
  7046. "x-go-name": "Labels"
  7047. }
  7048. },
  7049. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7050. },
  7051. "Label": {
  7052. "description": "Label a label to an issue or a pr",
  7053. "type": "object",
  7054. "properties": {
  7055. "color": {
  7056. "type": "string",
  7057. "x-go-name": "Color",
  7058. "example": "00aabb"
  7059. },
  7060. "id": {
  7061. "type": "integer",
  7062. "format": "int64",
  7063. "x-go-name": "ID"
  7064. },
  7065. "name": {
  7066. "type": "string",
  7067. "x-go-name": "Name"
  7068. },
  7069. "url": {
  7070. "type": "string",
  7071. "x-go-name": "URL"
  7072. }
  7073. },
  7074. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7075. },
  7076. "MarkdownOption": {
  7077. "description": "MarkdownOption markdown options",
  7078. "type": "object",
  7079. "properties": {
  7080. "Context": {
  7081. "description": "Context to render\n\nin: body",
  7082. "type": "string"
  7083. },
  7084. "Mode": {
  7085. "description": "Mode to render\n\nin: body",
  7086. "type": "string"
  7087. },
  7088. "Text": {
  7089. "description": "Text markdown to render\n\nin: body",
  7090. "type": "string"
  7091. },
  7092. "Wiki": {
  7093. "description": "Is it a wiki page ?\n\nin: body",
  7094. "type": "boolean"
  7095. }
  7096. },
  7097. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7098. },
  7099. "MigrateRepoForm": {
  7100. "description": "MigrateRepoForm form for migrating repository",
  7101. "type": "object",
  7102. "required": [
  7103. "clone_addr",
  7104. "uid",
  7105. "repo_name"
  7106. ],
  7107. "properties": {
  7108. "auth_password": {
  7109. "type": "string",
  7110. "x-go-name": "AuthPassword"
  7111. },
  7112. "auth_username": {
  7113. "type": "string",
  7114. "x-go-name": "AuthUsername"
  7115. },
  7116. "clone_addr": {
  7117. "type": "string",
  7118. "x-go-name": "CloneAddr"
  7119. },
  7120. "description": {
  7121. "type": "string",
  7122. "x-go-name": "Description"
  7123. },
  7124. "mirror": {
  7125. "type": "boolean",
  7126. "x-go-name": "Mirror"
  7127. },
  7128. "private": {
  7129. "type": "boolean",
  7130. "x-go-name": "Private"
  7131. },
  7132. "repo_name": {
  7133. "type": "string",
  7134. "x-go-name": "RepoName"
  7135. },
  7136. "uid": {
  7137. "type": "integer",
  7138. "format": "int64",
  7139. "x-go-name": "UID"
  7140. }
  7141. },
  7142. "x-go-package": "code.gitea.io/gitea/modules/auth"
  7143. },
  7144. "Milestone": {
  7145. "description": "Milestone milestone is a collection of issues on one repository",
  7146. "type": "object",
  7147. "properties": {
  7148. "closed_at": {
  7149. "type": "string",
  7150. "format": "date-time",
  7151. "x-go-name": "Closed"
  7152. },
  7153. "closed_issues": {
  7154. "type": "integer",
  7155. "format": "int64",
  7156. "x-go-name": "ClosedIssues"
  7157. },
  7158. "description": {
  7159. "type": "string",
  7160. "x-go-name": "Description"
  7161. },
  7162. "due_on": {
  7163. "type": "string",
  7164. "format": "date-time",
  7165. "x-go-name": "Deadline"
  7166. },
  7167. "id": {
  7168. "type": "integer",
  7169. "format": "int64",
  7170. "x-go-name": "ID"
  7171. },
  7172. "open_issues": {
  7173. "type": "integer",
  7174. "format": "int64",
  7175. "x-go-name": "OpenIssues"
  7176. },
  7177. "state": {
  7178. "$ref": "#/definitions/StateType"
  7179. },
  7180. "title": {
  7181. "type": "string",
  7182. "x-go-name": "Title"
  7183. }
  7184. },
  7185. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7186. },
  7187. "Organization": {
  7188. "description": "Organization represents an organization",
  7189. "type": "object",
  7190. "properties": {
  7191. "avatar_url": {
  7192. "type": "string",
  7193. "x-go-name": "AvatarURL"
  7194. },
  7195. "description": {
  7196. "type": "string",
  7197. "x-go-name": "Description"
  7198. },
  7199. "full_name": {
  7200. "type": "string",
  7201. "x-go-name": "FullName"
  7202. },
  7203. "id": {
  7204. "type": "integer",
  7205. "format": "int64",
  7206. "x-go-name": "ID"
  7207. },
  7208. "location": {
  7209. "type": "string",
  7210. "x-go-name": "Location"
  7211. },
  7212. "username": {
  7213. "type": "string",
  7214. "x-go-name": "UserName"
  7215. },
  7216. "website": {
  7217. "type": "string",
  7218. "x-go-name": "Website"
  7219. }
  7220. },
  7221. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7222. },
  7223. "PRBranchInfo": {
  7224. "description": "PRBranchInfo information about a branch",
  7225. "type": "object",
  7226. "properties": {
  7227. "label": {
  7228. "type": "string",
  7229. "x-go-name": "Name"
  7230. },
  7231. "ref": {
  7232. "type": "string",
  7233. "x-go-name": "Ref"
  7234. },
  7235. "repo": {
  7236. "$ref": "#/definitions/Repository"
  7237. },
  7238. "repo_id": {
  7239. "type": "integer",
  7240. "format": "int64",
  7241. "x-go-name": "RepoID"
  7242. },
  7243. "sha": {
  7244. "type": "string",
  7245. "x-go-name": "Sha"
  7246. }
  7247. },
  7248. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7249. },
  7250. "PayloadCommit": {
  7251. "description": "PayloadCommit represents a commit",
  7252. "type": "object",
  7253. "properties": {
  7254. "author": {
  7255. "$ref": "#/definitions/PayloadUser"
  7256. },
  7257. "committer": {
  7258. "$ref": "#/definitions/PayloadUser"
  7259. },
  7260. "id": {
  7261. "description": "sha1 hash of the commit",
  7262. "type": "string",
  7263. "x-go-name": "ID"
  7264. },
  7265. "message": {
  7266. "type": "string",
  7267. "x-go-name": "Message"
  7268. },
  7269. "timestamp": {
  7270. "type": "string",
  7271. "format": "date-time",
  7272. "x-go-name": "Timestamp"
  7273. },
  7274. "url": {
  7275. "type": "string",
  7276. "x-go-name": "URL"
  7277. },
  7278. "verification": {
  7279. "$ref": "#/definitions/PayloadCommitVerification"
  7280. }
  7281. },
  7282. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7283. },
  7284. "PayloadCommitVerification": {
  7285. "description": "PayloadCommitVerification represents the GPG verification of a commit",
  7286. "type": "object",
  7287. "properties": {
  7288. "payload": {
  7289. "type": "string",
  7290. "x-go-name": "Payload"
  7291. },
  7292. "reason": {
  7293. "type": "string",
  7294. "x-go-name": "Reason"
  7295. },
  7296. "signature": {
  7297. "type": "string",
  7298. "x-go-name": "Signature"
  7299. },
  7300. "verified": {
  7301. "type": "boolean",
  7302. "x-go-name": "Verified"
  7303. }
  7304. },
  7305. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7306. },
  7307. "PayloadUser": {
  7308. "description": "PayloadUser represents the author or committer of a commit",
  7309. "type": "object",
  7310. "properties": {
  7311. "email": {
  7312. "type": "string",
  7313. "format": "email",
  7314. "x-go-name": "Email"
  7315. },
  7316. "name": {
  7317. "description": "Full name of the commit author",
  7318. "type": "string",
  7319. "x-go-name": "Name"
  7320. },
  7321. "username": {
  7322. "type": "string",
  7323. "x-go-name": "UserName"
  7324. }
  7325. },
  7326. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7327. },
  7328. "Permission": {
  7329. "description": "Permission represents a set of permissions",
  7330. "type": "object",
  7331. "properties": {
  7332. "admin": {
  7333. "type": "boolean",
  7334. "x-go-name": "Admin"
  7335. },
  7336. "pull": {
  7337. "type": "boolean",
  7338. "x-go-name": "Pull"
  7339. },
  7340. "push": {
  7341. "type": "boolean",
  7342. "x-go-name": "Push"
  7343. }
  7344. },
  7345. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7346. },
  7347. "PublicKey": {
  7348. "description": "PublicKey publickey is a user key to push code to repository",
  7349. "type": "object",
  7350. "properties": {
  7351. "created_at": {
  7352. "type": "string",
  7353. "format": "date-time",
  7354. "x-go-name": "Created"
  7355. },
  7356. "fingerprint": {
  7357. "type": "string",
  7358. "x-go-name": "Fingerprint"
  7359. },
  7360. "id": {
  7361. "type": "integer",
  7362. "format": "int64",
  7363. "x-go-name": "ID"
  7364. },
  7365. "key": {
  7366. "type": "string",
  7367. "x-go-name": "Key"
  7368. },
  7369. "key_type": {
  7370. "type": "string",
  7371. "x-go-name": "KeyType"
  7372. },
  7373. "read_only": {
  7374. "type": "boolean",
  7375. "x-go-name": "ReadOnly"
  7376. },
  7377. "title": {
  7378. "type": "string",
  7379. "x-go-name": "Title"
  7380. },
  7381. "url": {
  7382. "type": "string",
  7383. "x-go-name": "URL"
  7384. },
  7385. "user": {
  7386. "$ref": "#/definitions/User"
  7387. }
  7388. },
  7389. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7390. },
  7391. "PullRequest": {
  7392. "description": "PullRequest represents a pull request",
  7393. "type": "object",
  7394. "properties": {
  7395. "assignee": {
  7396. "$ref": "#/definitions/User"
  7397. },
  7398. "assignees": {
  7399. "type": "array",
  7400. "items": {
  7401. "$ref": "#/definitions/User"
  7402. },
  7403. "x-go-name": "Assignees"
  7404. },
  7405. "base": {
  7406. "$ref": "#/definitions/PRBranchInfo"
  7407. },
  7408. "body": {
  7409. "type": "string",
  7410. "x-go-name": "Body"
  7411. },
  7412. "closed_at": {
  7413. "type": "string",
  7414. "format": "date-time",
  7415. "x-go-name": "Closed"
  7416. },
  7417. "comments": {
  7418. "type": "integer",
  7419. "format": "int64",
  7420. "x-go-name": "Comments"
  7421. },
  7422. "created_at": {
  7423. "type": "string",
  7424. "format": "date-time",
  7425. "x-go-name": "Created"
  7426. },
  7427. "diff_url": {
  7428. "type": "string",
  7429. "x-go-name": "DiffURL"
  7430. },
  7431. "due_date": {
  7432. "type": "string",
  7433. "format": "date-time",
  7434. "x-go-name": "Deadline"
  7435. },
  7436. "head": {
  7437. "$ref": "#/definitions/PRBranchInfo"
  7438. },
  7439. "html_url": {
  7440. "type": "string",
  7441. "x-go-name": "HTMLURL"
  7442. },
  7443. "id": {
  7444. "type": "integer",
  7445. "format": "int64",
  7446. "x-go-name": "ID"
  7447. },
  7448. "labels": {
  7449. "type": "array",
  7450. "items": {
  7451. "$ref": "#/definitions/Label"
  7452. },
  7453. "x-go-name": "Labels"
  7454. },
  7455. "merge_base": {
  7456. "type": "string",
  7457. "x-go-name": "MergeBase"
  7458. },
  7459. "merge_commit_sha": {
  7460. "type": "string",
  7461. "x-go-name": "MergedCommitID"
  7462. },
  7463. "mergeable": {
  7464. "type": "boolean",
  7465. "x-go-name": "Mergeable"
  7466. },
  7467. "merged": {
  7468. "type": "boolean",
  7469. "x-go-name": "HasMerged"
  7470. },
  7471. "merged_at": {
  7472. "type": "string",
  7473. "format": "date-time",
  7474. "x-go-name": "Merged"
  7475. },
  7476. "merged_by": {
  7477. "$ref": "#/definitions/User"
  7478. },
  7479. "milestone": {
  7480. "$ref": "#/definitions/Milestone"
  7481. },
  7482. "number": {
  7483. "type": "integer",
  7484. "format": "int64",
  7485. "x-go-name": "Index"
  7486. },
  7487. "patch_url": {
  7488. "type": "string",
  7489. "x-go-name": "PatchURL"
  7490. },
  7491. "state": {
  7492. "$ref": "#/definitions/StateType"
  7493. },
  7494. "title": {
  7495. "type": "string",
  7496. "x-go-name": "Title"
  7497. },
  7498. "updated_at": {
  7499. "type": "string",
  7500. "format": "date-time",
  7501. "x-go-name": "Updated"
  7502. },
  7503. "url": {
  7504. "type": "string",
  7505. "x-go-name": "URL"
  7506. },
  7507. "user": {
  7508. "$ref": "#/definitions/User"
  7509. }
  7510. },
  7511. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7512. },
  7513. "PullRequestMeta": {
  7514. "description": "PullRequestMeta PR info if an issue is a PR",
  7515. "type": "object",
  7516. "properties": {
  7517. "merged": {
  7518. "type": "boolean",
  7519. "x-go-name": "HasMerged"
  7520. },
  7521. "merged_at": {
  7522. "type": "string",
  7523. "format": "date-time",
  7524. "x-go-name": "Merged"
  7525. }
  7526. },
  7527. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7528. },
  7529. "Release": {
  7530. "description": "Release represents a repository release",
  7531. "type": "object",
  7532. "properties": {
  7533. "assets": {
  7534. "type": "array",
  7535. "items": {
  7536. "$ref": "#/definitions/Attachment"
  7537. },
  7538. "x-go-name": "Attachments"
  7539. },
  7540. "author": {
  7541. "$ref": "#/definitions/User"
  7542. },
  7543. "body": {
  7544. "type": "string",
  7545. "x-go-name": "Note"
  7546. },
  7547. "created_at": {
  7548. "type": "string",
  7549. "format": "date-time",
  7550. "x-go-name": "CreatedAt"
  7551. },
  7552. "draft": {
  7553. "type": "boolean",
  7554. "x-go-name": "IsDraft"
  7555. },
  7556. "id": {
  7557. "type": "integer",
  7558. "format": "int64",
  7559. "x-go-name": "ID"
  7560. },
  7561. "name": {
  7562. "type": "string",
  7563. "x-go-name": "Title"
  7564. },
  7565. "prerelease": {
  7566. "type": "boolean",
  7567. "x-go-name": "IsPrerelease"
  7568. },
  7569. "published_at": {
  7570. "type": "string",
  7571. "format": "date-time",
  7572. "x-go-name": "PublishedAt"
  7573. },
  7574. "tag_name": {
  7575. "type": "string",
  7576. "x-go-name": "TagName"
  7577. },
  7578. "tarball_url": {
  7579. "type": "string",
  7580. "x-go-name": "TarURL"
  7581. },
  7582. "target_commitish": {
  7583. "type": "string",
  7584. "x-go-name": "Target"
  7585. },
  7586. "url": {
  7587. "type": "string",
  7588. "x-go-name": "URL"
  7589. },
  7590. "zipball_url": {
  7591. "type": "string",
  7592. "x-go-name": "ZipURL"
  7593. }
  7594. },
  7595. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7596. },
  7597. "Repository": {
  7598. "description": "Repository represents a repository",
  7599. "type": "object",
  7600. "properties": {
  7601. "archived": {
  7602. "type": "boolean",
  7603. "x-go-name": "Archived"
  7604. },
  7605. "clone_url": {
  7606. "type": "string",
  7607. "x-go-name": "CloneURL"
  7608. },
  7609. "created_at": {
  7610. "type": "string",
  7611. "format": "date-time",
  7612. "x-go-name": "Created"
  7613. },
  7614. "default_branch": {
  7615. "type": "string",
  7616. "x-go-name": "DefaultBranch"
  7617. },
  7618. "description": {
  7619. "type": "string",
  7620. "x-go-name": "Description"
  7621. },
  7622. "empty": {
  7623. "type": "boolean",
  7624. "x-go-name": "Empty"
  7625. },
  7626. "fork": {
  7627. "type": "boolean",
  7628. "x-go-name": "Fork"
  7629. },
  7630. "forks_count": {
  7631. "type": "integer",
  7632. "format": "int64",
  7633. "x-go-name": "Forks"
  7634. },
  7635. "full_name": {
  7636. "type": "string",
  7637. "x-go-name": "FullName"
  7638. },
  7639. "html_url": {
  7640. "type": "string",
  7641. "x-go-name": "HTMLURL"
  7642. },
  7643. "id": {
  7644. "type": "integer",
  7645. "format": "int64",
  7646. "x-go-name": "ID"
  7647. },
  7648. "mirror": {
  7649. "type": "boolean",
  7650. "x-go-name": "Mirror"
  7651. },
  7652. "name": {
  7653. "type": "string",
  7654. "x-go-name": "Name"
  7655. },
  7656. "open_issues_count": {
  7657. "type": "integer",
  7658. "format": "int64",
  7659. "x-go-name": "OpenIssues"
  7660. },
  7661. "owner": {
  7662. "$ref": "#/definitions/User"
  7663. },
  7664. "parent": {
  7665. "$ref": "#/definitions/Repository"
  7666. },
  7667. "permissions": {
  7668. "$ref": "#/definitions/Permission"
  7669. },
  7670. "private": {
  7671. "type": "boolean",
  7672. "x-go-name": "Private"
  7673. },
  7674. "size": {
  7675. "type": "integer",
  7676. "format": "int64",
  7677. "x-go-name": "Size"
  7678. },
  7679. "ssh_url": {
  7680. "type": "string",
  7681. "x-go-name": "SSHURL"
  7682. },
  7683. "stars_count": {
  7684. "type": "integer",
  7685. "format": "int64",
  7686. "x-go-name": "Stars"
  7687. },
  7688. "updated_at": {
  7689. "type": "string",
  7690. "format": "date-time",
  7691. "x-go-name": "Updated"
  7692. },
  7693. "watchers_count": {
  7694. "type": "integer",
  7695. "format": "int64",
  7696. "x-go-name": "Watchers"
  7697. },
  7698. "website": {
  7699. "type": "string",
  7700. "x-go-name": "Website"
  7701. }
  7702. },
  7703. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7704. },
  7705. "SearchResults": {
  7706. "description": "SearchResults results of a successful search",
  7707. "type": "object",
  7708. "properties": {
  7709. "data": {
  7710. "type": "array",
  7711. "items": {
  7712. "$ref": "#/definitions/Repository"
  7713. },
  7714. "x-go-name": "Data"
  7715. },
  7716. "ok": {
  7717. "type": "boolean",
  7718. "x-go-name": "OK"
  7719. }
  7720. },
  7721. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7722. },
  7723. "ServerVersion": {
  7724. "description": "ServerVersion wraps the version of the server",
  7725. "type": "object",
  7726. "properties": {
  7727. "version": {
  7728. "type": "string",
  7729. "x-go-name": "Version"
  7730. }
  7731. },
  7732. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7733. },
  7734. "StateType": {
  7735. "description": "StateType issue state type",
  7736. "type": "string",
  7737. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7738. },
  7739. "Status": {
  7740. "description": "Status holds a single Status of a single Commit",
  7741. "type": "object",
  7742. "properties": {
  7743. "context": {
  7744. "type": "string",
  7745. "x-go-name": "Context"
  7746. },
  7747. "created_at": {
  7748. "type": "string",
  7749. "format": "date-time",
  7750. "x-go-name": "Created"
  7751. },
  7752. "creator": {
  7753. "$ref": "#/definitions/User"
  7754. },
  7755. "description": {
  7756. "type": "string",
  7757. "x-go-name": "Description"
  7758. },
  7759. "id": {
  7760. "type": "integer",
  7761. "format": "int64",
  7762. "x-go-name": "ID"
  7763. },
  7764. "status": {
  7765. "$ref": "#/definitions/StatusState"
  7766. },
  7767. "target_url": {
  7768. "type": "string",
  7769. "x-go-name": "TargetURL"
  7770. },
  7771. "updated_at": {
  7772. "type": "string",
  7773. "format": "date-time",
  7774. "x-go-name": "Updated"
  7775. },
  7776. "url": {
  7777. "type": "string",
  7778. "x-go-name": "URL"
  7779. }
  7780. },
  7781. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7782. },
  7783. "StatusState": {
  7784. "description": "StatusState holds the state of a Status\nIt can be \"pending\", \"success\", \"error\", \"failure\", and \"warning\"",
  7785. "type": "string",
  7786. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7787. },
  7788. "Team": {
  7789. "description": "Team represents a team in an organization",
  7790. "type": "object",
  7791. "properties": {
  7792. "description": {
  7793. "type": "string",
  7794. "x-go-name": "Description"
  7795. },
  7796. "id": {
  7797. "type": "integer",
  7798. "format": "int64",
  7799. "x-go-name": "ID"
  7800. },
  7801. "name": {
  7802. "type": "string",
  7803. "x-go-name": "Name"
  7804. },
  7805. "permission": {
  7806. "type": "string",
  7807. "enum": [
  7808. "none",
  7809. "read",
  7810. "write",
  7811. "admin",
  7812. "owner"
  7813. ],
  7814. "x-go-name": "Permission"
  7815. },
  7816. "units": {
  7817. "type": "array",
  7818. "enum": [
  7819. "repo.code",
  7820. "repo.issues",
  7821. "repo.ext_issues",
  7822. "repo.wiki",
  7823. "repo.pulls",
  7824. "repo.releases",
  7825. "repo.ext_wiki"
  7826. ],
  7827. "items": {
  7828. "type": "string"
  7829. },
  7830. "x-go-name": "Units"
  7831. }
  7832. },
  7833. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7834. },
  7835. "TimeStamp": {
  7836. "description": "TimeStamp defines a timestamp",
  7837. "type": "integer",
  7838. "format": "int64",
  7839. "x-go-package": "code.gitea.io/gitea/modules/util"
  7840. },
  7841. "TrackedTime": {
  7842. "description": "TrackedTime worked time for an issue / pr",
  7843. "type": "object",
  7844. "properties": {
  7845. "created": {
  7846. "type": "string",
  7847. "format": "date-time",
  7848. "x-go-name": "Created"
  7849. },
  7850. "id": {
  7851. "type": "integer",
  7852. "format": "int64",
  7853. "x-go-name": "ID"
  7854. },
  7855. "issue_id": {
  7856. "type": "integer",
  7857. "format": "int64",
  7858. "x-go-name": "IssueID"
  7859. },
  7860. "time": {
  7861. "description": "Time in seconds",
  7862. "type": "integer",
  7863. "format": "int64",
  7864. "x-go-name": "Time"
  7865. },
  7866. "user_id": {
  7867. "type": "integer",
  7868. "format": "int64",
  7869. "x-go-name": "UserID"
  7870. }
  7871. },
  7872. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7873. },
  7874. "User": {
  7875. "description": "User represents a user",
  7876. "type": "object",
  7877. "properties": {
  7878. "avatar_url": {
  7879. "description": "URL to the user's avatar",
  7880. "type": "string",
  7881. "x-go-name": "AvatarURL"
  7882. },
  7883. "email": {
  7884. "type": "string",
  7885. "format": "email",
  7886. "x-go-name": "Email"
  7887. },
  7888. "full_name": {
  7889. "description": "the user's full name",
  7890. "type": "string",
  7891. "x-go-name": "FullName"
  7892. },
  7893. "id": {
  7894. "description": "the user's id",
  7895. "type": "integer",
  7896. "format": "int64",
  7897. "x-go-name": "ID"
  7898. },
  7899. "language": {
  7900. "description": "User locale",
  7901. "type": "string",
  7902. "x-go-name": "Language"
  7903. },
  7904. "login": {
  7905. "description": "the user's username",
  7906. "type": "string",
  7907. "x-go-name": "UserName"
  7908. }
  7909. },
  7910. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7911. },
  7912. "UserHeatmapData": {
  7913. "description": "UserHeatmapData represents the data needed to create a heatmap",
  7914. "type": "object",
  7915. "properties": {
  7916. "contributions": {
  7917. "type": "integer",
  7918. "format": "int64",
  7919. "x-go-name": "Contributions"
  7920. },
  7921. "timestamp": {
  7922. "$ref": "#/definitions/TimeStamp"
  7923. }
  7924. },
  7925. "x-go-package": "code.gitea.io/gitea/models"
  7926. },
  7927. "WatchInfo": {
  7928. "description": "WatchInfo represents an API watch status of one repository",
  7929. "type": "object",
  7930. "properties": {
  7931. "created_at": {
  7932. "type": "string",
  7933. "format": "date-time",
  7934. "x-go-name": "CreatedAt"
  7935. },
  7936. "ignored": {
  7937. "type": "boolean",
  7938. "x-go-name": "Ignored"
  7939. },
  7940. "reason": {
  7941. "type": "object",
  7942. "x-go-name": "Reason"
  7943. },
  7944. "repository_url": {
  7945. "type": "string",
  7946. "x-go-name": "RepositoryURL"
  7947. },
  7948. "subscribed": {
  7949. "type": "boolean",
  7950. "x-go-name": "Subscribed"
  7951. },
  7952. "url": {
  7953. "type": "string",
  7954. "x-go-name": "URL"
  7955. }
  7956. },
  7957. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7958. }
  7959. },
  7960. "responses": {
  7961. "AccessToken": {
  7962. "description": "AccessToken represents a API access token.",
  7963. "headers": {
  7964. "id": {
  7965. "type": "integer",
  7966. "format": "int64"
  7967. },
  7968. "name": {
  7969. "type": "string"
  7970. },
  7971. "sha1": {
  7972. "type": "string"
  7973. }
  7974. }
  7975. },
  7976. "AccessTokenList": {
  7977. "description": "AccessTokenList represents a list of API access token."
  7978. },
  7979. "Attachment": {
  7980. "description": "Attachment",
  7981. "schema": {
  7982. "$ref": "#/definitions/Attachment"
  7983. }
  7984. },
  7985. "AttachmentList": {
  7986. "description": "AttachmentList",
  7987. "schema": {
  7988. "type": "array",
  7989. "items": {
  7990. "$ref": "#/definitions/Attachment"
  7991. }
  7992. }
  7993. },
  7994. "Branch": {
  7995. "description": "Branch",
  7996. "schema": {
  7997. "$ref": "#/definitions/Branch"
  7998. }
  7999. },
  8000. "BranchList": {
  8001. "description": "BranchList",
  8002. "schema": {
  8003. "type": "array",
  8004. "items": {
  8005. "$ref": "#/definitions/Branch"
  8006. }
  8007. }
  8008. },
  8009. "Comment": {
  8010. "description": "Comment",
  8011. "schema": {
  8012. "$ref": "#/definitions/Comment"
  8013. }
  8014. },
  8015. "CommentList": {
  8016. "description": "CommentList",
  8017. "schema": {
  8018. "type": "array",
  8019. "items": {
  8020. "$ref": "#/definitions/Comment"
  8021. }
  8022. }
  8023. },
  8024. "DeployKey": {
  8025. "description": "DeployKey",
  8026. "schema": {
  8027. "$ref": "#/definitions/DeployKey"
  8028. }
  8029. },
  8030. "DeployKeyList": {
  8031. "description": "DeployKeyList",
  8032. "schema": {
  8033. "type": "array",
  8034. "items": {
  8035. "$ref": "#/definitions/DeployKey"
  8036. }
  8037. }
  8038. },
  8039. "EmailList": {
  8040. "description": "EmailList",
  8041. "schema": {
  8042. "type": "array",
  8043. "items": {
  8044. "$ref": "#/definitions/Email"
  8045. }
  8046. }
  8047. },
  8048. "GPGKey": {
  8049. "description": "GPGKey",
  8050. "schema": {
  8051. "$ref": "#/definitions/GPGKey"
  8052. }
  8053. },
  8054. "GPGKeyList": {
  8055. "description": "GPGKeyList",
  8056. "schema": {
  8057. "type": "array",
  8058. "items": {
  8059. "$ref": "#/definitions/GPGKey"
  8060. }
  8061. }
  8062. },
  8063. "Hook": {
  8064. "description": "Hook",
  8065. "schema": {
  8066. "type": "array",
  8067. "items": {
  8068. "$ref": "#/definitions/Branch"
  8069. }
  8070. }
  8071. },
  8072. "HookList": {
  8073. "description": "HookList",
  8074. "schema": {
  8075. "type": "array",
  8076. "items": {
  8077. "$ref": "#/definitions/Branch"
  8078. }
  8079. }
  8080. },
  8081. "Issue": {
  8082. "description": "Issue",
  8083. "schema": {
  8084. "$ref": "#/definitions/Issue"
  8085. }
  8086. },
  8087. "IssueDeadline": {
  8088. "description": "IssueDeadline",
  8089. "schema": {
  8090. "$ref": "#/definitions/IssueDeadline"
  8091. }
  8092. },
  8093. "IssueList": {
  8094. "description": "IssueList",
  8095. "schema": {
  8096. "type": "array",
  8097. "items": {
  8098. "$ref": "#/definitions/Issue"
  8099. }
  8100. }
  8101. },
  8102. "Label": {
  8103. "description": "Label",
  8104. "schema": {
  8105. "$ref": "#/definitions/Label"
  8106. }
  8107. },
  8108. "LabelList": {
  8109. "description": "LabelList",
  8110. "schema": {
  8111. "type": "array",
  8112. "items": {
  8113. "$ref": "#/definitions/Label"
  8114. }
  8115. }
  8116. },
  8117. "MarkdownRender": {
  8118. "description": "MarkdownRender is a rendered markdown document"
  8119. },
  8120. "Milestone": {
  8121. "description": "Milestone",
  8122. "schema": {
  8123. "$ref": "#/definitions/Milestone"
  8124. }
  8125. },
  8126. "MilestoneList": {
  8127. "description": "MilestoneList",
  8128. "schema": {
  8129. "type": "array",
  8130. "items": {
  8131. "$ref": "#/definitions/Milestone"
  8132. }
  8133. }
  8134. },
  8135. "Organization": {
  8136. "description": "Organization",
  8137. "schema": {
  8138. "$ref": "#/definitions/Organization"
  8139. }
  8140. },
  8141. "OrganizationList": {
  8142. "description": "OrganizationList",
  8143. "schema": {
  8144. "type": "array",
  8145. "items": {
  8146. "$ref": "#/definitions/Organization"
  8147. }
  8148. }
  8149. },
  8150. "PublicKey": {
  8151. "description": "PublicKey",
  8152. "schema": {
  8153. "$ref": "#/definitions/PublicKey"
  8154. }
  8155. },
  8156. "PublicKeyList": {
  8157. "description": "PublicKeyList",
  8158. "schema": {
  8159. "type": "array",
  8160. "items": {
  8161. "$ref": "#/definitions/PublicKey"
  8162. }
  8163. }
  8164. },
  8165. "PullRequest": {
  8166. "description": "PullRequest",
  8167. "schema": {
  8168. "$ref": "#/definitions/PullRequest"
  8169. }
  8170. },
  8171. "PullRequestList": {
  8172. "description": "PullRequestList",
  8173. "schema": {
  8174. "type": "array",
  8175. "items": {
  8176. "$ref": "#/definitions/PullRequest"
  8177. }
  8178. }
  8179. },
  8180. "Release": {
  8181. "description": "Release",
  8182. "schema": {
  8183. "$ref": "#/definitions/Release"
  8184. }
  8185. },
  8186. "ReleaseList": {
  8187. "description": "ReleaseList",
  8188. "schema": {
  8189. "type": "array",
  8190. "items": {
  8191. "$ref": "#/definitions/Release"
  8192. }
  8193. }
  8194. },
  8195. "Repository": {
  8196. "description": "Repository",
  8197. "schema": {
  8198. "$ref": "#/definitions/Repository"
  8199. }
  8200. },
  8201. "RepositoryList": {
  8202. "description": "RepositoryList",
  8203. "schema": {
  8204. "type": "array",
  8205. "items": {
  8206. "$ref": "#/definitions/Repository"
  8207. }
  8208. }
  8209. },
  8210. "SearchResults": {
  8211. "description": "SearchResults",
  8212. "schema": {
  8213. "$ref": "#/definitions/SearchResults"
  8214. }
  8215. },
  8216. "ServerVersion": {
  8217. "description": "ServerVersion",
  8218. "schema": {
  8219. "$ref": "#/definitions/ServerVersion"
  8220. }
  8221. },
  8222. "Status": {
  8223. "description": "Status",
  8224. "schema": {
  8225. "$ref": "#/definitions/Status"
  8226. }
  8227. },
  8228. "StatusList": {
  8229. "description": "StatusList",
  8230. "schema": {
  8231. "type": "array",
  8232. "items": {
  8233. "$ref": "#/definitions/Status"
  8234. }
  8235. }
  8236. },
  8237. "Team": {
  8238. "description": "Team",
  8239. "schema": {
  8240. "$ref": "#/definitions/Team"
  8241. }
  8242. },
  8243. "TeamList": {
  8244. "description": "TeamList",
  8245. "schema": {
  8246. "type": "array",
  8247. "items": {
  8248. "$ref": "#/definitions/Team"
  8249. }
  8250. }
  8251. },
  8252. "TrackedTime": {
  8253. "description": "TrackedTime",
  8254. "schema": {
  8255. "$ref": "#/definitions/TrackedTime"
  8256. }
  8257. },
  8258. "TrackedTimeList": {
  8259. "description": "TrackedTimeList",
  8260. "schema": {
  8261. "type": "array",
  8262. "items": {
  8263. "$ref": "#/definitions/TrackedTime"
  8264. }
  8265. }
  8266. },
  8267. "User": {
  8268. "description": "User",
  8269. "schema": {
  8270. "$ref": "#/definitions/User"
  8271. }
  8272. },
  8273. "UserHeatmapData": {
  8274. "description": "UserHeatmapData",
  8275. "schema": {
  8276. "type": "array",
  8277. "items": {
  8278. "$ref": "#/definitions/UserHeatmapData"
  8279. }
  8280. }
  8281. },
  8282. "UserList": {
  8283. "description": "UserList",
  8284. "schema": {
  8285. "type": "array",
  8286. "items": {
  8287. "$ref": "#/definitions/User"
  8288. }
  8289. }
  8290. },
  8291. "WatchInfo": {
  8292. "description": "WatchInfo",
  8293. "schema": {
  8294. "$ref": "#/definitions/WatchInfo"
  8295. }
  8296. },
  8297. "empty": {
  8298. "description": "APIEmpty is an empty response"
  8299. },
  8300. "error": {
  8301. "description": "APIError is error format response",
  8302. "headers": {
  8303. "message": {
  8304. "type": "string"
  8305. },
  8306. "url": {
  8307. "type": "string"
  8308. }
  8309. }
  8310. },
  8311. "forbidden": {
  8312. "description": "APIForbiddenError is a forbidden error response",
  8313. "headers": {
  8314. "message": {
  8315. "type": "string"
  8316. },
  8317. "url": {
  8318. "type": "string"
  8319. }
  8320. }
  8321. },
  8322. "notFound": {
  8323. "description": "APINotFound is a not found empty response"
  8324. },
  8325. "parameterBodies": {
  8326. "description": "parameterBodies",
  8327. "schema": {
  8328. "$ref": "#/definitions/EditAttachmentOptions"
  8329. }
  8330. },
  8331. "redirect": {
  8332. "description": "APIRedirect is a redirect response"
  8333. },
  8334. "validationError": {
  8335. "description": "APIValidationError is error format response related to input validation",
  8336. "headers": {
  8337. "message": {
  8338. "type": "string"
  8339. },
  8340. "url": {
  8341. "type": "string"
  8342. }
  8343. }
  8344. }
  8345. },
  8346. "securityDefinitions": {
  8347. "AccessToken": {
  8348. "type": "apiKey",
  8349. "name": "access_token",
  8350. "in": "query"
  8351. },
  8352. "AuthorizationHeaderToken": {
  8353. "type": "apiKey",
  8354. "name": "Authorization",
  8355. "in": "header"
  8356. },
  8357. "BasicAuth": {
  8358. "type": "basic"
  8359. },
  8360. "SudoHeader": {
  8361. "description": "Sudo API request as the user provided as the key. Admin privileges are required.",
  8362. "type": "apiKey",
  8363. "name": "Sudo",
  8364. "in": "header"
  8365. },
  8366. "SudoParam": {
  8367. "description": "Sudo API request as the user provided as the key. Admin privileges are required.",
  8368. "type": "apiKey",
  8369. "name": "sudo",
  8370. "in": "query"
  8371. },
  8372. "Token": {
  8373. "type": "apiKey",
  8374. "name": "token",
  8375. "in": "query"
  8376. }
  8377. },
  8378. "security": [
  8379. {
  8380. "BasicAuth": []
  8381. },
  8382. {
  8383. "Token": []
  8384. },
  8385. {
  8386. "AccessToken": []
  8387. },
  8388. {
  8389. "AuthorizationHeaderToken": []
  8390. },
  8391. {
  8392. "SudoParam": []
  8393. },
  8394. {
  8395. "SudoHeader": []
  8396. }
  8397. ]
  8398. }