mirror of
https://github.com/go-gitea/gitea
synced 2025-12-07 13:28:25 +00:00
Merge branch 'master' into fix-6409
This commit is contained in:
+518
-88
@@ -552,6 +552,7 @@
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/EditOrgOption"
|
||||
}
|
||||
@@ -1085,6 +1086,19 @@
|
||||
"name": "uid",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "search only for repos that the user with the given id has starred",
|
||||
"name": "starredBy",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "include private repositories this user has access to (defaults to true)",
|
||||
"name": "private",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "page number of results to return (1-based)",
|
||||
@@ -1197,6 +1211,51 @@
|
||||
"$ref": "#/responses/forbidden"
|
||||
}
|
||||
}
|
||||
},
|
||||
"patch": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"repository"
|
||||
],
|
||||
"summary": "Edit a repository's properties. Only fields that are set will be changed.",
|
||||
"operationId": "repoEdit",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "owner of the repo to edit",
|
||||
"name": "owner",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "name of the repo to edit",
|
||||
"name": "repo",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Properties of a repo that you can edit",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/EditRepoOption"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/responses/Repository"
|
||||
},
|
||||
"403": {
|
||||
"$ref": "#/responses/forbidden"
|
||||
},
|
||||
"422": {
|
||||
"$ref": "#/responses/validationError"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/repos/{owner}/{repo}/archive/{archive}": {
|
||||
@@ -1511,7 +1570,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/repos/{owner}/{repo}/contents/{filepath}": {
|
||||
"/repos/{owner}/{repo}/contents": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
@@ -1519,8 +1578,8 @@
|
||||
"tags": [
|
||||
"repository"
|
||||
],
|
||||
"summary": "Gets the contents of a file or directory in a repository",
|
||||
"operationId": "repoGetFileContents",
|
||||
"summary": "Gets the metadata of all the entries of the root dir",
|
||||
"operationId": "repoGetContentsList",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -1538,7 +1597,46 @@
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "path of the file to delete",
|
||||
"description": "The name of the commit/branch/tag. Default the repository’s default branch (usually master)",
|
||||
"name": "ref",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/responses/ContentsListResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/repos/{owner}/{repo}/contents/{filepath}": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"repository"
|
||||
],
|
||||
"summary": "Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir",
|
||||
"operationId": "repoGetContents",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "owner of the repo",
|
||||
"name": "owner",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "name of the repo",
|
||||
"name": "repo",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "path of the dir, file, symlink or submodule in the repo",
|
||||
"name": "filepath",
|
||||
"in": "path",
|
||||
"required": true
|
||||
@@ -1552,7 +1650,7 @@
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/responses/FileContentResponse"
|
||||
"$ref": "#/responses/ContentsResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1591,9 +1689,9 @@
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "'content' must be base64 encoded\n\n 'sha' is the SHA for the file that already exists\n\n 'author' and 'committer' are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)\n\n If 'branch' is not given, default branch will be used\n\n 'new_branch' (optional) will make a new branch from 'branch' before updating the file",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/UpdateFileOptions"
|
||||
}
|
||||
@@ -1640,9 +1738,9 @@
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "'content' must be base64 encoded\n\n 'author' and 'committer' are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)\n\n If 'branch' is not given, default branch will be used\n\n 'sha' is the SHA for the file that already exists\n\n 'new_branch' (optional) will make a new branch from 'branch' before creating the file",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/CreateFileOptions"
|
||||
}
|
||||
@@ -1689,9 +1787,9 @@
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "'sha' is the SHA for the file to be deleted\n\n 'author' and 'committer' are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)\n\n If 'branch' is not given, default branch will be used\n\n 'new_branch' (optional) will make a new branch from 'branch' before deleting the file",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/DeleteFileOptions"
|
||||
}
|
||||
@@ -1977,6 +2075,46 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/repos/{owner}/{repo}/git/tags/{sha}": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"repository"
|
||||
],
|
||||
"summary": "Gets the tag of a repository.",
|
||||
"operationId": "GetTag",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "owner of the repo",
|
||||
"name": "owner",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "name of the repo",
|
||||
"name": "repo",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "sha of the tag",
|
||||
"name": "sha",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/responses/AnnotatedTag"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/repos/{owner}/{repo}/git/trees/{sha}": {
|
||||
"get": {
|
||||
"produces": [
|
||||
@@ -3833,6 +3971,12 @@
|
||||
"name": "repo",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Milestone state, Recognised values are open, closed and all. Defaults to \"open\"",
|
||||
"name": "state",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -6024,6 +6168,12 @@
|
||||
"responses": {
|
||||
"201": {
|
||||
"$ref": "#/responses/Repository"
|
||||
},
|
||||
"409": {
|
||||
"description": "The repository with the same name already exists."
|
||||
},
|
||||
"422": {
|
||||
"$ref": "#/responses/validationError"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6691,6 +6841,57 @@
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"AnnotatedTag": {
|
||||
"description": "AnnotatedTag represents an annotated tag",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"type": "string",
|
||||
"x-go-name": "Message"
|
||||
},
|
||||
"object": {
|
||||
"$ref": "#/definitions/AnnotatedTagObject"
|
||||
},
|
||||
"sha": {
|
||||
"type": "string",
|
||||
"x-go-name": "SHA"
|
||||
},
|
||||
"tag": {
|
||||
"type": "string",
|
||||
"x-go-name": "Tag"
|
||||
},
|
||||
"tagger": {
|
||||
"$ref": "#/definitions/CommitUser"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"x-go-name": "URL"
|
||||
},
|
||||
"verification": {
|
||||
"$ref": "#/definitions/PayloadCommitVerification"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"AnnotatedTagObject": {
|
||||
"description": "AnnotatedTagObject contains meta information of the tag object",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"sha": {
|
||||
"type": "string",
|
||||
"x-go-name": "SHA"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"x-go-name": "Type"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"x-go-name": "URL"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"Attachment": {
|
||||
"description": "Attachment a generic attachment",
|
||||
"type": "object",
|
||||
@@ -6770,6 +6971,15 @@
|
||||
"type": "string",
|
||||
"x-go-name": "IssueURL"
|
||||
},
|
||||
"original_author": {
|
||||
"type": "string",
|
||||
"x-go-name": "OriginalAuthor"
|
||||
},
|
||||
"original_author_id": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"x-go-name": "OriginalAuthorID"
|
||||
},
|
||||
"pull_request_url": {
|
||||
"type": "string",
|
||||
"x-go-name": "PRURL"
|
||||
@@ -6855,6 +7065,74 @@
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"ContentsResponse": {
|
||||
"description": "ContentsResponse contains information about a repo's entry's (dir, file, symlink, submodule) metadata and content",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"_links": {
|
||||
"$ref": "#/definitions/FileLinksResponse"
|
||||
},
|
||||
"content": {
|
||||
"description": "`content` is populated when `type` is `file`, otherwise null",
|
||||
"type": "string",
|
||||
"x-go-name": "Content"
|
||||
},
|
||||
"download_url": {
|
||||
"type": "string",
|
||||
"x-go-name": "DownloadURL"
|
||||
},
|
||||
"encoding": {
|
||||
"description": "`encoding` is populated when `type` is `file`, otherwise null",
|
||||
"type": "string",
|
||||
"x-go-name": "Encoding"
|
||||
},
|
||||
"git_url": {
|
||||
"type": "string",
|
||||
"x-go-name": "GitURL"
|
||||
},
|
||||
"html_url": {
|
||||
"type": "string",
|
||||
"x-go-name": "HTMLURL"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"x-go-name": "Name"
|
||||
},
|
||||
"path": {
|
||||
"type": "string",
|
||||
"x-go-name": "Path"
|
||||
},
|
||||
"sha": {
|
||||
"type": "string",
|
||||
"x-go-name": "SHA"
|
||||
},
|
||||
"size": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"x-go-name": "Size"
|
||||
},
|
||||
"submodule_git_url": {
|
||||
"description": "`submodule_git_url` is populated when `type` is `submodule`, otherwise null",
|
||||
"type": "string",
|
||||
"x-go-name": "SubmoduleGitURL"
|
||||
},
|
||||
"target": {
|
||||
"description": "`target` is populated when `type` is `symlink`, otherwise null",
|
||||
"type": "string",
|
||||
"x-go-name": "Target"
|
||||
},
|
||||
"type": {
|
||||
"description": "`type` will be `file`, `dir`, `symlink`, or `submodule`",
|
||||
"type": "string",
|
||||
"x-go-name": "Type"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"x-go-name": "URL"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"CreateEmailOption": {
|
||||
"description": "CreateEmailOption options when creating email addresses",
|
||||
"type": "object",
|
||||
@@ -6871,13 +7149,17 @@
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"CreateFileOptions": {
|
||||
"description": "CreateFileOptions options for creating files",
|
||||
"description": "CreateFileOptions options for creating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"content"
|
||||
],
|
||||
"properties": {
|
||||
"author": {
|
||||
"$ref": "#/definitions/Identity"
|
||||
},
|
||||
"branch": {
|
||||
"description": "branch (optional) to base this file from. if not given, the default branch is used",
|
||||
"type": "string",
|
||||
"x-go-name": "BranchName"
|
||||
},
|
||||
@@ -6885,14 +7167,17 @@
|
||||
"$ref": "#/definitions/Identity"
|
||||
},
|
||||
"content": {
|
||||
"description": "content must be base64 encoded",
|
||||
"type": "string",
|
||||
"x-go-name": "Content"
|
||||
},
|
||||
"message": {
|
||||
"description": "message (optional) for the commit of this file. if not supplied, a default message will be used",
|
||||
"type": "string",
|
||||
"x-go-name": "Message"
|
||||
},
|
||||
"new_branch": {
|
||||
"description": "new_branch (optional) will make a new branch from `branch` before creating the file",
|
||||
"type": "string",
|
||||
"x-go-name": "NewBranchName"
|
||||
}
|
||||
@@ -7076,6 +7361,10 @@
|
||||
"x-go-name": "Color",
|
||||
"example": "#00aabb"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"x-go-name": "Description"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"x-go-name": "Name"
|
||||
@@ -7127,7 +7416,14 @@
|
||||
"x-go-name": "UserName"
|
||||
},
|
||||
"visibility": {
|
||||
"$ref": "#/definitions/VisibleType"
|
||||
"description": "possible values are `public` (default), `limited` or `private`",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"public",
|
||||
"limited",
|
||||
"private"
|
||||
],
|
||||
"x-go-name": "Visibility"
|
||||
},
|
||||
"website": {
|
||||
"type": "string",
|
||||
@@ -7399,13 +7695,17 @@
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"DeleteFileOptions": {
|
||||
"description": "DeleteFileOptions options for deleting files (used for other File structs below)",
|
||||
"description": "DeleteFileOptions options for deleting files (used for other File structs below)\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"sha"
|
||||
],
|
||||
"properties": {
|
||||
"author": {
|
||||
"$ref": "#/definitions/Identity"
|
||||
},
|
||||
"branch": {
|
||||
"description": "branch (optional) to base this file from. if not given, the default branch is used",
|
||||
"type": "string",
|
||||
"x-go-name": "BranchName"
|
||||
},
|
||||
@@ -7413,14 +7713,17 @@
|
||||
"$ref": "#/definitions/Identity"
|
||||
},
|
||||
"message": {
|
||||
"description": "message (optional) for the commit of this file. if not supplied, a default message will be used",
|
||||
"type": "string",
|
||||
"x-go-name": "Message"
|
||||
},
|
||||
"new_branch": {
|
||||
"description": "new_branch (optional) will make a new branch from `branch` before creating the file",
|
||||
"type": "string",
|
||||
"x-go-name": "NewBranchName"
|
||||
},
|
||||
"sha": {
|
||||
"description": "sha is the SHA for the file that already exists",
|
||||
"type": "string",
|
||||
"x-go-name": "SHA"
|
||||
}
|
||||
@@ -7596,6 +7899,10 @@
|
||||
"type": "string",
|
||||
"x-go-name": "Color"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"x-go-name": "Description"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"x-go-name": "Name"
|
||||
@@ -7643,6 +7950,16 @@
|
||||
"type": "string",
|
||||
"x-go-name": "Location"
|
||||
},
|
||||
"visibility": {
|
||||
"description": "possible values are `public`, `limited` or `private`",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"public",
|
||||
"limited",
|
||||
"private"
|
||||
],
|
||||
"x-go-name": "Visibility"
|
||||
},
|
||||
"website": {
|
||||
"type": "string",
|
||||
"x-go-name": "Website"
|
||||
@@ -7729,6 +8046,84 @@
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"EditRepoOption": {
|
||||
"description": "EditRepoOption options when editing a repository's properties",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"allow_merge_commits": {
|
||||
"description": "either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. `has_pull_requests` must be `true`.",
|
||||
"type": "boolean",
|
||||
"x-go-name": "AllowMerge"
|
||||
},
|
||||
"allow_rebase": {
|
||||
"description": "either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. `has_pull_requests` must be `true`.",
|
||||
"type": "boolean",
|
||||
"x-go-name": "AllowRebase"
|
||||
},
|
||||
"allow_rebase_explicit": {
|
||||
"description": "either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits. `has_pull_requests` must be `true`.",
|
||||
"type": "boolean",
|
||||
"x-go-name": "AllowRebaseMerge"
|
||||
},
|
||||
"allow_squash_merge": {
|
||||
"description": "either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. `has_pull_requests` must be `true`.",
|
||||
"type": "boolean",
|
||||
"x-go-name": "AllowSquash"
|
||||
},
|
||||
"archived": {
|
||||
"description": "set to `true` to archive this repository.",
|
||||
"type": "boolean",
|
||||
"x-go-name": "Archived"
|
||||
},
|
||||
"default_branch": {
|
||||
"description": "sets the default branch for this repository.",
|
||||
"type": "string",
|
||||
"x-go-name": "DefaultBranch"
|
||||
},
|
||||
"description": {
|
||||
"description": "a short description of the repository.",
|
||||
"type": "string",
|
||||
"x-go-name": "Description"
|
||||
},
|
||||
"has_issues": {
|
||||
"description": "either `true` to enable issues for this repository or `false` to disable them.",
|
||||
"type": "boolean",
|
||||
"x-go-name": "HasIssues"
|
||||
},
|
||||
"has_pull_requests": {
|
||||
"description": "either `true` to allow pull requests, or `false` to prevent pull request.",
|
||||
"type": "boolean",
|
||||
"x-go-name": "HasPullRequests"
|
||||
},
|
||||
"has_wiki": {
|
||||
"description": "either `true` to enable the wiki for this repository or `false` to disable it.",
|
||||
"type": "boolean",
|
||||
"x-go-name": "HasWiki"
|
||||
},
|
||||
"ignore_whitespace_conflicts": {
|
||||
"description": "either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace. `has_pull_requests` must be `true`.",
|
||||
"type": "boolean",
|
||||
"x-go-name": "IgnoreWhitespaceConflicts"
|
||||
},
|
||||
"name": {
|
||||
"description": "name of the repository",
|
||||
"type": "string",
|
||||
"uniqueItems": true,
|
||||
"x-go-name": "Name"
|
||||
},
|
||||
"private": {
|
||||
"description": "either `true` to make the repository private or `false` to make it public.\nNote: you will get a 422 error if the organization restricts changing repository visibility to organization\nowners and a non-owner tries to change the value of private.",
|
||||
"type": "boolean",
|
||||
"x-go-name": "Private"
|
||||
},
|
||||
"website": {
|
||||
"description": "a URL with more information about the repository.",
|
||||
"type": "string",
|
||||
"x-go-name": "Website"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"EditTeamOption": {
|
||||
"description": "EditTeamOption options for editing a team",
|
||||
"type": "object",
|
||||
@@ -7908,53 +8303,6 @@
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"FileContentResponse": {
|
||||
"description": "FileContentResponse contains information about a repo's file stats and content",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"_links": {
|
||||
"$ref": "#/definitions/FileLinksResponse"
|
||||
},
|
||||
"download_url": {
|
||||
"type": "string",
|
||||
"x-go-name": "DownloadURL"
|
||||
},
|
||||
"git_url": {
|
||||
"type": "string",
|
||||
"x-go-name": "GitURL"
|
||||
},
|
||||
"html_url": {
|
||||
"type": "string",
|
||||
"x-go-name": "HTMLURL"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"x-go-name": "Name"
|
||||
},
|
||||
"path": {
|
||||
"type": "string",
|
||||
"x-go-name": "Path"
|
||||
},
|
||||
"sha": {
|
||||
"type": "string",
|
||||
"x-go-name": "SHA"
|
||||
},
|
||||
"size": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"x-go-name": "Size"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"x-go-name": "Type"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"x-go-name": "URL"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"FileDeleteResponse": {
|
||||
"description": "FileDeleteResponse contains information about a repo's file that was deleted",
|
||||
"type": "object",
|
||||
@@ -7976,15 +8324,15 @@
|
||||
"description": "FileLinksResponse contains the links for a repo's file",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"git_url": {
|
||||
"git": {
|
||||
"type": "string",
|
||||
"x-go-name": "GitURL"
|
||||
},
|
||||
"html_url": {
|
||||
"html": {
|
||||
"type": "string",
|
||||
"x-go-name": "HTMLURL"
|
||||
},
|
||||
"url": {
|
||||
"self": {
|
||||
"type": "string",
|
||||
"x-go-name": "Self"
|
||||
}
|
||||
@@ -7999,7 +8347,7 @@
|
||||
"$ref": "#/definitions/FileCommitResponse"
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/definitions/FileContentResponse"
|
||||
"$ref": "#/definitions/ContentsResponse"
|
||||
},
|
||||
"verification": {
|
||||
"$ref": "#/definitions/PayloadCommitVerification"
|
||||
@@ -8338,6 +8686,15 @@
|
||||
"format": "int64",
|
||||
"x-go-name": "Index"
|
||||
},
|
||||
"original_author": {
|
||||
"type": "string",
|
||||
"x-go-name": "OriginalAuthor"
|
||||
},
|
||||
"original_author_id": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"x-go-name": "OriginalAuthorID"
|
||||
},
|
||||
"pull_request": {
|
||||
"$ref": "#/definitions/PullRequestMeta"
|
||||
},
|
||||
@@ -8400,6 +8757,10 @@
|
||||
"x-go-name": "Color",
|
||||
"example": "00aabb"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"x-go-name": "Description"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
@@ -8607,7 +8968,8 @@
|
||||
"x-go-name": "UserName"
|
||||
},
|
||||
"visibility": {
|
||||
"$ref": "#/definitions/VisibleType"
|
||||
"type": "string",
|
||||
"x-go-name": "Visibility"
|
||||
},
|
||||
"website": {
|
||||
"type": "string",
|
||||
@@ -9057,10 +9419,30 @@
|
||||
"description": "Repository represents a repository",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"allow_merge_commits": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "AllowMerge"
|
||||
},
|
||||
"allow_rebase": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "AllowRebase"
|
||||
},
|
||||
"allow_rebase_explicit": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "AllowRebaseMerge"
|
||||
},
|
||||
"allow_squash_merge": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "AllowSquash"
|
||||
},
|
||||
"archived": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "Archived"
|
||||
},
|
||||
"avatar_url": {
|
||||
"type": "string",
|
||||
"x-go-name": "AvatarURL"
|
||||
},
|
||||
"clone_url": {
|
||||
"type": "string",
|
||||
"x-go-name": "CloneURL"
|
||||
@@ -9095,6 +9477,18 @@
|
||||
"type": "string",
|
||||
"x-go-name": "FullName"
|
||||
},
|
||||
"has_issues": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "HasIssues"
|
||||
},
|
||||
"has_pull_requests": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "HasPullRequests"
|
||||
},
|
||||
"has_wiki": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "HasWiki"
|
||||
},
|
||||
"html_url": {
|
||||
"type": "string",
|
||||
"x-go-name": "HTMLURL"
|
||||
@@ -9104,6 +9498,10 @@
|
||||
"format": "int64",
|
||||
"x-go-name": "ID"
|
||||
},
|
||||
"ignore_whitespace_conflicts": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "IgnoreWhitespaceConflicts"
|
||||
},
|
||||
"mirror": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "Mirror"
|
||||
@@ -9117,6 +9515,10 @@
|
||||
"format": "int64",
|
||||
"x-go-name": "OpenIssues"
|
||||
},
|
||||
"original_url": {
|
||||
"type": "string",
|
||||
"x-go-name": "OriginalURL"
|
||||
},
|
||||
"owner": {
|
||||
"$ref": "#/definitions/User"
|
||||
},
|
||||
@@ -9249,18 +9651,11 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"commit": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"sha": {
|
||||
"type": "string",
|
||||
"x-go-name": "SHA"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"x-go-name": "URL"
|
||||
}
|
||||
},
|
||||
"x-go-name": "Commit"
|
||||
"$ref": "#/definitions/CommitMeta"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"x-go-name": "ID"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
@@ -9371,13 +9766,18 @@
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"UpdateFileOptions": {
|
||||
"description": "UpdateFileOptions options for updating files",
|
||||
"description": "UpdateFileOptions options for updating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"sha",
|
||||
"content"
|
||||
],
|
||||
"properties": {
|
||||
"author": {
|
||||
"$ref": "#/definitions/Identity"
|
||||
},
|
||||
"branch": {
|
||||
"description": "branch (optional) to base this file from. if not given, the default branch is used",
|
||||
"type": "string",
|
||||
"x-go-name": "BranchName"
|
||||
},
|
||||
@@ -9385,22 +9785,27 @@
|
||||
"$ref": "#/definitions/Identity"
|
||||
},
|
||||
"content": {
|
||||
"description": "content must be base64 encoded",
|
||||
"type": "string",
|
||||
"x-go-name": "Content"
|
||||
},
|
||||
"from_path": {
|
||||
"description": "from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL",
|
||||
"type": "string",
|
||||
"x-go-name": "FromPath"
|
||||
},
|
||||
"message": {
|
||||
"description": "message (optional) for the commit of this file. if not supplied, a default message will be used",
|
||||
"type": "string",
|
||||
"x-go-name": "Message"
|
||||
},
|
||||
"new_branch": {
|
||||
"description": "new_branch (optional) will make a new branch from `branch` before creating the file",
|
||||
"type": "string",
|
||||
"x-go-name": "NewBranchName"
|
||||
},
|
||||
"sha": {
|
||||
"description": "sha is the SHA for the file that already exists",
|
||||
"type": "string",
|
||||
"x-go-name": "SHA"
|
||||
}
|
||||
@@ -9416,6 +9821,11 @@
|
||||
"type": "string",
|
||||
"x-go-name": "AvatarURL"
|
||||
},
|
||||
"created": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"x-go-name": "Created"
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"format": "email",
|
||||
@@ -9442,6 +9852,11 @@
|
||||
"type": "string",
|
||||
"x-go-name": "Language"
|
||||
},
|
||||
"last_login": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"x-go-name": "LastLogin"
|
||||
},
|
||||
"login": {
|
||||
"description": "the user's username",
|
||||
"type": "string",
|
||||
@@ -9465,12 +9880,6 @@
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/models"
|
||||
},
|
||||
"VisibleType": {
|
||||
"description": "VisibleType defines the visibility (Organization only)",
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"WatchInfo": {
|
||||
"description": "WatchInfo represents an API watch status of one repository",
|
||||
"type": "object",
|
||||
@@ -9526,6 +9935,12 @@
|
||||
"AccessTokenList": {
|
||||
"description": "AccessTokenList represents a list of API access token."
|
||||
},
|
||||
"AnnotatedTag": {
|
||||
"description": "AnnotatedTag",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/AnnotatedTag"
|
||||
}
|
||||
},
|
||||
"Attachment": {
|
||||
"description": "Attachment",
|
||||
"schema": {
|
||||
@@ -9577,6 +9992,21 @@
|
||||
"$ref": "#/definitions/Commit"
|
||||
}
|
||||
},
|
||||
"ContentsListResponse": {
|
||||
"description": "ContentsListResponse",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/ContentsResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ContentsResponse": {
|
||||
"description": "ContentsResponse",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ContentsResponse"
|
||||
}
|
||||
},
|
||||
"DeployKey": {
|
||||
"description": "DeployKey",
|
||||
"schema": {
|
||||
@@ -9601,12 +10031,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"FileContentResponse": {
|
||||
"description": "FileContentResponse",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/FileContentResponse"
|
||||
}
|
||||
},
|
||||
"FileDeleteResponse": {
|
||||
"description": "FileDeleteResponse",
|
||||
"schema": {
|
||||
@@ -9847,6 +10271,12 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Tag": {
|
||||
"description": "Tag",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/Tag"
|
||||
}
|
||||
},
|
||||
"TagList": {
|
||||
"description": "TagList",
|
||||
"schema": {
|
||||
|
||||
Reference in New Issue
Block a user