Class: GitlabQuality::TestTooling::GitlabClient::MergeRequestsDryClient

Inherits:
MergeRequestsClient show all
Defined in:
lib/gitlab_quality/test_tooling/gitlab_client/merge_requests_dry_client.rb

Constant Summary

Constants inherited from GitlabClient

GitlabClient::MAX_RETRY_ATTEMPTS, GitlabClient::RETRY_BACK_OFF_DELAY

Instance Method Summary collapse

Methods inherited from MergeRequestsClient

#find, #find_merge_request_changes, #merge_request, #merge_request_changed_files, #merge_request_diffs

Methods inherited from GitlabClient

#handle_gitlab_client_exceptions, #ignore_gitlab_client_exceptions, #initialize, #post_exception_to_slack

Constructor Details

This class inherits a constructor from GitlabQuality::TestTooling::GitlabClient::GitlabClient

Instance Method Details

#create_merge_request(title:, source_branch:, target_branch:, description:, labels:, assignee_id:, reviewer_ids:) ⇒ Object



19
20
21
22
23
24
# File 'lib/gitlab_quality/test_tooling/gitlab_client/merge_requests_dry_client.rb', line 19

def create_merge_request(title:, source_branch:, target_branch:, description:, labels:, assignee_id:, reviewer_ids:)
  puts "A merge request would be created with title: #{title} " \
       "source_branch: #{source_branch} target_branch: #{target_branch} " \
       "description: #{description} labels: #{labels}, assignee_id: #{assignee_id}" \
       "reviewer_ids: #{reviewer_ids}"
end

#create_note(note:, merge_request_iid:) ⇒ Object



11
12
13
# File 'lib/gitlab_quality/test_tooling/gitlab_client/merge_requests_dry_client.rb', line 11

def create_note(note:, merge_request_iid:)
  puts "The following note would have been created with body: #{note} for mr_iid: #{merge_request_iid}"
end

#find_note(body:, merge_request_iid:) ⇒ Object



7
8
9
# File 'lib/gitlab_quality/test_tooling/gitlab_client/merge_requests_dry_client.rb', line 7

def find_note(body:, merge_request_iid:)
  puts "Find note for #{merge_request_iid} with body: #{body} for mr_iid: #{merge_request_iid}"
end

#update_note(id:, note:, merge_request_iid:) ⇒ Object



15
16
17
# File 'lib/gitlab_quality/test_tooling/gitlab_client/merge_requests_dry_client.rb', line 15

def update_note(id:, note:, merge_request_iid:)
  puts "The following note would have been updated id: #{id} with body: #{note} for mr_iid: #{merge_request_iid}"
end