Class: Gitlab::Client
- Inherits:
-
Object
- Object
- Gitlab::Client
- 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
- #add_note_to_issue_discussion_as_thread(project, issue_id, discussion_id, options = {}) ⇒ Object
- #issue_discussions(project, issue_id, options = {}) ⇒ Object
- #team_member(project, id) ⇒ Object
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, = {}) post("/projects/#{url_encode(project)}/issues/#{issue_id}/discussions/#{discussion_id}/notes", query: ) 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, = {}) get("/projects/#{url_encode(project)}/issues/#{issue_id}/discussions", query: ) 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 |