diff options
author | David Svantesson <davidsvantesson@gmail.com> | 2019-11-03 15:46:32 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-11-03 22:46:32 +0800 |
commit | 7971b05d2b96e45a4ee3954a39a7db9b9bbb807f (patch) | |
tree | f46d38c064c5372e6d3b813568096bef402421fb /templates | |
parent | dce22efbee6a04b8c19348dac831cd88b18ac07c (diff) | |
download | gitea-7971b05d2b96e45a4ee3954a39a7db9b9bbb807f.tar.gz gitea-7971b05d2b96e45a4ee3954a39a7db9b9bbb807f.zip |
Fix API deadline removal (#8759)
* Handle deadline is zero (to remove deadline)
* Better API documentation for issue deadline.
* Add parameter to unset due date.
* Update pull edit API comment
Diffstat (limited to 'templates')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 41e5353ea7..17b8eab6c5 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -4715,7 +4715,7 @@ "tags": [ "repository" ], - "summary": "Update a pull request", + "summary": "Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.", "operationId": "repoEditPullRequest", "parameters": [ { @@ -8532,6 +8532,10 @@ "title": { "type": "string", "x-go-name": "Title" + }, + "unset_due_date": { + "type": "boolean", + "x-go-name": "RemoveDeadline" } }, "x-go-package": "code.gitea.io/gitea/modules/structs" @@ -8660,6 +8664,10 @@ "title": { "type": "string", "x-go-name": "Title" + }, + "unset_due_date": { + "type": "boolean", + "x-go-name": "RemoveDeadline" } }, "x-go-package": "code.gitea.io/gitea/modules/structs" |