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

v1_json.tmpl 198 kB

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