Module: Gitlab::Client::IssueLinks
- Included in:
- Gitlab::Client
- Defined in:
- lib/gitlab/client/issue_links.rb
Overview
Defines methods related to issue links.
Instance Method Summary collapse
-
#create_issue_link(project, issue, target_project_id, target_issue_iid) ⇒ Gitlab::ObjectifiedHash
Creates a new issue link.
-
#delete_issue_link(project, issue, id) ⇒ Gitlab::ObjectifiedHash
Deletes an issue link.
-
#issue_links(project, issue, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of links for a issue.
Instance Method Details
#create_issue_link(project, issue, target_project_id, target_issue_iid) ⇒ Gitlab::ObjectifiedHash
Creates a new issue link.
31 32 33 |
# File 'lib/gitlab/client/issue_links.rb', line 31 def create_issue_link(project, issue, target_project_id, target_issue_iid) post("/projects/#{url_encode project}/issues/#{issue}/links", body: { target_project_id: target_project_id, target_issue_iid: target_issue_iid }) end |
#delete_issue_link(project, issue, id) ⇒ Gitlab::ObjectifiedHash
Deletes an issue link.
44 45 46 |
# File 'lib/gitlab/client/issue_links.rb', line 44 def delete_issue_link(project, issue, id) delete("/projects/#{url_encode project}/issues/#{issue}/links/#{id}") end |
#issue_links(project, issue, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of links for a issue.
17 18 19 |
# File 'lib/gitlab/client/issue_links.rb', line 17 def issue_links(project, issue, = {}) get("/projects/#{url_encode project}/issues/#{issue}/links", query: ) end |