Merge branch 'master' of https://github.com/go-gitea/gitea into issue-due-date-api
# Conflicts: # public/swagger.v1.json
This commit is contained in:
parent
6aa29b0ff6
commit
ead7b645a1
83
public/swagger.v1.json
vendored
83
public/swagger.v1.json
vendored
|
|
@ -2104,6 +2104,56 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/repos/{owner}/{repo}/issues/{index}/deadline": {
|
||||||
|
"post": {
|
||||||
|
"consumes": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"produces": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"issue"
|
||||||
|
],
|
||||||
|
"summary": "Set an issue deadline. If set to null, the deadline is deleted.",
|
||||||
|
"operationId": "issueEditIssueDeadline",
|
||||||
|
"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": "integer",
|
||||||
|
"description": "index of the issue to create or update a deadline on",
|
||||||
|
"name": "index",
|
||||||
|
"in": "path",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "body",
|
||||||
|
"in": "body",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/EditDeadlineOption"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"201": {
|
||||||
|
"$ref": "#/responses/IssueDeadline"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"/repos/{owner}/{repo}/issues/{index}/labels": {
|
"/repos/{owner}/{repo}/issues/{index}/labels": {
|
||||||
"get": {
|
"get": {
|
||||||
"produces": [
|
"produces": [
|
||||||
|
|
@ -5997,6 +6047,21 @@
|
||||||
},
|
},
|
||||||
"x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
|
"x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
|
||||||
},
|
},
|
||||||
|
"EditDeadlineOption": {
|
||||||
|
"description": "EditDeadlineOption options for creating a deadline",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"due_date"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"due_date": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"x-go-name": "Deadline"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
|
||||||
|
},
|
||||||
"EditHookOption": {
|
"EditHookOption": {
|
||||||
"description": "EditHookOption options when modify one hook",
|
"description": "EditHookOption options when modify one hook",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|
@ -6487,6 +6552,18 @@
|
||||||
},
|
},
|
||||||
"x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
|
"x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
|
||||||
},
|
},
|
||||||
|
"IssueDeadline": {
|
||||||
|
"description": "IssueDeadline represents an issue deadline",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"due_date": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"x-go-name": "Deadline"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
|
||||||
|
},
|
||||||
"IssueLabelsOption": {
|
"IssueLabelsOption": {
|
||||||
"description": "IssueLabelsOption a collection of labels",
|
"description": "IssueLabelsOption a collection of labels",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|
@ -7469,6 +7546,11 @@
|
||||||
"$ref": "#/definitions/Issue"
|
"$ref": "#/definitions/Issue"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"IssueDeadline": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/IssueDeadline"
|
||||||
|
}
|
||||||
|
},
|
||||||
"IssueList": {
|
"IssueList": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
|
@ -7693,6 +7775,7 @@
|
||||||
"CreateUserOption": {},
|
"CreateUserOption": {},
|
||||||
"DeleteEmailOption": {},
|
"DeleteEmailOption": {},
|
||||||
"EditAttachmentOptions": {},
|
"EditAttachmentOptions": {},
|
||||||
|
"EditDeadlineOption": {},
|
||||||
"EditHookOption": {},
|
"EditHookOption": {},
|
||||||
"EditIssueCommentOption": {},
|
"EditIssueCommentOption": {},
|
||||||
"EditIssueOption": {},
|
"EditIssueOption": {},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user