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.

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