summaryrefslogtreecommitdiffstats
path: root/modules/structs/pull.go
diff options
context:
space:
mode:
authorDavid Svantesson <davidsvantesson@gmail.com>2019-11-03 15:46:32 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2019-11-03 22:46:32 +0800
commit7971b05d2b96e45a4ee3954a39a7db9b9bbb807f (patch)
treef46d38c064c5372e6d3b813568096bef402421fb /modules/structs/pull.go
parentdce22efbee6a04b8c19348dac831cd88b18ac07c (diff)
downloadgitea-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 'modules/structs/pull.go')
-rw-r--r--modules/structs/pull.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/structs/pull.go b/modules/structs/pull.go
index 722d245afc..c4ec7d416a 100644
--- a/modules/structs/pull.go
+++ b/modules/structs/pull.go
@@ -88,5 +88,6 @@ type EditPullRequestOption struct {
Labels []int64 `json:"labels"`
State *string `json:"state"`
// swagger:strfmt date-time
- Deadline *time.Time `json:"due_date"`
+ Deadline *time.Time `json:"due_date"`
+ RemoveDeadline *bool `json:"unset_due_date"`
}