Class: Gitlab::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/qa/report/gitlab_issue_client.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



16
17
18
# File 'lib/gitlab/qa/report/gitlab_issue_client.rb', line 16

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



12
13
14
# File 'lib/gitlab/qa/report/gitlab_issue_client.rb', line 12

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

#team_member(project, id) ⇒ Object



8
9
10
# File 'lib/gitlab/qa/report/gitlab_issue_client.rb', line 8

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