diff options
author | 6543 <6543@obermui.de> | 2020-06-10 00:01:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 18:01:36 -0400 |
commit | 1ac46186ff004861a786a81fe045beddaf790407 (patch) | |
tree | 179108d99d750bc77fb3a5ce5b6ccd865de807ea /modules | |
parent | 19db3f4f0a6739e10aaa36d86ef5fd89dcf71467 (diff) | |
download | gitea-1ac46186ff004861a786a81fe045beddaf790407.tar.gz gitea-1ac46186ff004861a786a81fe045beddaf790407.zip |
API allow to create closed milestones (#11745)
* API allow to create closed milestones
* set CloseDate too
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/structs/issue_milestone.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/structs/issue_milestone.go b/modules/structs/issue_milestone.go index 2bfdcd6bff..ec940c2604 100644 --- a/modules/structs/issue_milestone.go +++ b/modules/structs/issue_milestone.go @@ -28,6 +28,8 @@ type CreateMilestoneOption struct { Description string `json:"description"` // swagger:strfmt date-time Deadline *time.Time `json:"due_on"` + // enum: open,closed + State string `json:"state"` } // EditMilestoneOption options for editing a milestone |