From ead7b645a1cf94c3a97ee7cbc546a29ae7316d01 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 9 May 2018 10:19:22 +0200 Subject: [PATCH] Merge branch 'master' of https://github.com/go-gitea/gitea into issue-due-date-api # Conflicts: # public/swagger.v1.json --- public/swagger.v1.json | 83 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/public/swagger.v1.json b/public/swagger.v1.json index c5b1baa9a..ea8477687 100644 --- a/public/swagger.v1.json +++ b/public/swagger.v1.json @@ -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": { "get": { "produces": [ @@ -5997,6 +6047,21 @@ }, "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": { "description": "EditHookOption options when modify one hook", "type": "object", @@ -6487,6 +6552,18 @@ }, "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": { "description": "IssueLabelsOption a collection of labels", "type": "object", @@ -7469,6 +7546,11 @@ "$ref": "#/definitions/Issue" } }, + "IssueDeadline": { + "schema": { + "$ref": "#/definitions/IssueDeadline" + } + }, "IssueList": { "schema": { "type": "array", @@ -7693,6 +7775,7 @@ "CreateUserOption": {}, "DeleteEmailOption": {}, "EditAttachmentOptions": {}, + "EditDeadlineOption": {}, "EditHookOption": {}, "EditIssueCommentOption": {}, "EditIssueOption": {},