diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2016-11-23 13:23:13 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2016-11-23 13:23:13 +0000 |
commit | 4646d453b3211e29ec5afba2568766018caf32e0 (patch) | |
tree | 0775b128f5abd774c97791dab5c462e8bc52b47c /lib | |
parent | 1a45de3d4559a2f92e099a43490e9c50fe4bc86e (diff) | |
parent | 3789cfe056c1d8a5fb91267cc2b1dd0f9f5902a9 (diff) | |
download | gitlab-ce-4646d453b3211e29ec5afba2568766018caf32e0.tar.gz |
Merge branch 'milestone_start_date' into 'master'
Add a starting date to milestones
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/23704
See merge request !7484
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/entities.rb | 1 | ||||
-rw-r--r-- | lib/api/milestones.rb | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 33cb6fd3704..7a724487e02 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -210,6 +210,7 @@ module API class Milestone < ProjectEntity expose :due_date + expose :start_date end class Issue < ProjectEntity diff --git a/lib/api/milestones.rb b/lib/api/milestones.rb index 29bf73934d2..50d6109be3d 100644 --- a/lib/api/milestones.rb +++ b/lib/api/milestones.rb @@ -14,7 +14,8 @@ module API params :optional_params do optional :description, type: String, desc: 'The description of the milestone' - optional :due_date, type: String, desc: 'The due date of the milestone' + optional :due_date, type: String, desc: 'The due date of the milestone. The ISO 8601 date format (%Y-%m-%d)' + optional :start_date, type: String, desc: 'The start date of the milestone. The ISO 8601 date format (%Y-%m-%d)' end end |