Module: Gitlab::Client::MergeTrains
- Included in:
- Gitlab::Client
- Defined in:
- lib/gitlab/client/merge_trains.rb
Overview
Defines methods related to merge trains.
Instance Method Summary collapse
-
#add_merge_request_to_merge_train(project, merge_request_iid, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Add a merge request to the merge train targeting the merge request’s target branch.
-
#merge_train_merge_requests(project, target_branch, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Get all merge requests added to a merge train for the requested target branch.
-
#merge_train_status(project, merge_request_iid) ⇒ Gitlab::ObjectifiedHash
Get merge train information for the requested merge request.
-
#merge_trains(project, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Get list of merge trains for a project.
Instance Method Details
#add_merge_request_to_merge_train(project, merge_request_iid, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Add a merge request to the merge train targeting the merge request’s target branch.
51 52 53 |
# File 'lib/gitlab/client/merge_trains.rb', line 51 def add_merge_request_to_merge_train(project, merge_request_iid, = {}) post("/projects/#{url_encode project}/merge_trains/merge_requests/#{merge_request_iid}", query: ) end |
#merge_train_merge_requests(project, target_branch, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Get all merge requests added to a merge train for the requested target branch.
29 30 31 |
# File 'lib/gitlab/client/merge_trains.rb', line 29 def merge_train_merge_requests(project, target_branch, = {}) get("/projects/#{url_encode project}/merge_trains/#{target_branch}", query: ) end |
#merge_train_status(project, merge_request_iid) ⇒ Gitlab::ObjectifiedHash
Get merge train information for the requested merge request.
38 39 40 |
# File 'lib/gitlab/client/merge_trains.rb', line 38 def merge_train_status(project, merge_request_iid) get("/projects/#{url_encode project}/merge_trains/merge_requests/#{merge_request_iid}") end |
#merge_trains(project, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Get list of merge trains for a project.
17 18 19 |
# File 'lib/gitlab/client/merge_trains.rb', line 17 def merge_trains(project, = {}) get("/projects/#{url_encode project}/merge_trains", query: ) end |