mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
Merge pull request #4 from jdalrymple/TestBranch
Added Create Issue Link
This commit is contained in:
commit
93aa5347e7
@ -22,6 +22,7 @@ class ProjectHooks extends BaseModel {
|
||||
}
|
||||
|
||||
edit(projectId, hookId, url, options) {
|
||||
options.url = url;
|
||||
const [pId, hId] = [projectId, hookId].map(Utils.parse);
|
||||
|
||||
return this.put(`projects/${pId}/hooks/${hId}`, options);
|
||||
|
||||
@ -52,6 +52,15 @@ class ProjectIssues extends BaseModel {
|
||||
|
||||
return this.delete(`projects/${pId}/issues/${iId}/unsubscribe`);
|
||||
}
|
||||
|
||||
link(projectId, issueIId, targetProjectId, targetIssueId, options = {}) {
|
||||
const [pId, iId] = [projectId, issueIId].map(Utils.parse);
|
||||
const [targetpId, targetIId] = [targetProjectId, targetIssueId].map(Utils.parse);
|
||||
options.target_project_id = targetpId;
|
||||
options.target_issue_id = targetIId;
|
||||
|
||||
return this.post(`projects/${pId}/issues/${iId}/links`, options);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ProjectIssues;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user