Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/resource/project_milestone.rb')
-rw-r--r--qa/qa/resource/project_milestone.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/qa/qa/resource/project_milestone.rb b/qa/qa/resource/project_milestone.rb
index 4d6b37937b4..385b9f0c96b 100644
--- a/qa/qa/resource/project_milestone.rb
+++ b/qa/qa/resource/project_milestone.rb
@@ -3,6 +3,8 @@
module QA
module Resource
class ProjectMilestone < Base
+ attr_writer :start_date, :due_date
+
attribute :id
attribute :title
@@ -27,7 +29,10 @@ module QA
def api_post_body
{
title: title
- }
+ }.tap do |hash|
+ hash[:start_date] = @start_date if @start_date
+ hash[:due_date] = @due_date if @due_date
+ end
end
end
end