Module: Gitlab::Client::GroupMilestones
- Included in:
- Gitlab::Client
- Defined in:
- lib/gitlab/client/group_milestones.rb
Overview
Defines methods related to group milestones.
Instance Method Summary collapse
-
#create_group_milestone(id, title, options = {}) ⇒ Gitlab::ObjectifiedHash
Creates a new group milestone.
-
#edit_group_milestone(id, milestone_id, options = {}) ⇒ Gitlab::ObjectifiedHash
Updates a group milestone.
-
#group_milestone(id, milestone_id) ⇒ Gitlab::ObjectifiedHash
Gets a single group milestone.
-
#group_milestone_issues(id, milestone_id, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets the issues of a given group milestone.
-
#group_milestone_merge_requests(id, milestone_id, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets the merge_requests of a given group milestone.
-
#group_milestones(id, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of a group’s milestones.
Instance Method Details
#create_group_milestone(id, title, options = {}) ⇒ Gitlab::ObjectifiedHash
Creates a new group milestone.
44 45 46 47 |
# File 'lib/gitlab/client/group_milestones.rb', line 44 def create_group_milestone(id, title, = {}) body = { title: title }.merge() post("/groups/#{url_encode id}/milestones", body: body) end |
#edit_group_milestone(id, milestone_id, options = {}) ⇒ Gitlab::ObjectifiedHash
Updates a group milestone.
62 63 64 |
# File 'lib/gitlab/client/group_milestones.rb', line 62 def edit_group_milestone(id, milestone_id, = {}) put("/groups/#{url_encode id}/milestones/#{milestone_id}", body: ) end |
#group_milestone(id, milestone_id) ⇒ Gitlab::ObjectifiedHash
Gets a single group milestone.
29 30 31 |
# File 'lib/gitlab/client/group_milestones.rb', line 29 def group_milestone(id, milestone_id) get("/groups/#{url_encode id}/milestones/#{milestone_id}") end |
#group_milestone_issues(id, milestone_id, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets the issues of a given group milestone.
76 77 78 |
# File 'lib/gitlab/client/group_milestones.rb', line 76 def group_milestone_issues(id, milestone_id, = {}) get("/groups/#{url_encode id}/milestones/#{milestone_id}/issues", query: ) end |
#group_milestone_merge_requests(id, milestone_id, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets the merge_requests of a given group milestone.
90 91 92 |
# File 'lib/gitlab/client/group_milestones.rb', line 90 def group_milestone_merge_requests(id, milestone_id, = {}) get("/groups/#{url_encode id}/milestones/#{milestone_id}/merge_requests", query: ) end |
#group_milestones(id, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of a group’s milestones.
17 18 19 |
# File 'lib/gitlab/client/group_milestones.rb', line 17 def group_milestones(id, = {}) get("/groups/#{url_encode id}/milestones", query: ) end |