Class: Gitlab::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/qa/report/results_in_issues.rb

Overview

Monkey patch the Gitlab client to use the correct API path and add required methods

Instance Method Summary collapse

Instance Method Details

#add_note_to_issue_discussion_as_thread(project, issue_id, discussion_id, options = {}) ⇒ Object



18
19
20
# File 'lib/gitlab/qa/report/results_in_issues.rb', line 18

def add_note_to_issue_discussion_as_thread(project, issue_id, discussion_id, options = {})
  post("/projects/#{url_encode(project)}/issues/#{issue_id}/discussions/#{discussion_id}/notes", query: options)
end

#issue_discussions(project, issue_id, options = {}) ⇒ Object



14
15
16
# File 'lib/gitlab/qa/report/results_in_issues.rb', line 14

def issue_discussions(project, issue_id, options = {})
  get("/projects/#{url_encode(project)}/issues/#{issue_id}/discussions", query: options)
end

#team_member(project, id) ⇒ Object



10
11
12
# File 'lib/gitlab/qa/report/results_in_issues.rb', line 10

def team_member(project, id)
  get("/projects/#{url_encode(project)}/members/all/#{id}")
end