mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
Issue links (get, delete) (#868)
List issue relations: https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/api/issue_links.md#list-issue-relations Delete an issue link: https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/api/issue_links.md#delete-an-issue-link
This commit is contained in:
parent
3281d063b8
commit
480558f77f
@ -52,6 +52,12 @@ export class Issues extends BaseService {
|
||||
|
||||
return RequestHelper.put(this, `projects/${pId}/issues/${iId}`, options);
|
||||
}
|
||||
|
||||
links(projectId: string | number, issueIId: number) {
|
||||
const [pId, iId] = [projectId, issueIId].map(encodeURIComponent);
|
||||
|
||||
return RequestHelper.get(this, `projects/${pId}/issues/${iId}/links`);
|
||||
}
|
||||
|
||||
link(
|
||||
projectId: string | number,
|
||||
@ -69,6 +75,19 @@ export class Issues extends BaseService {
|
||||
...options,
|
||||
});
|
||||
}
|
||||
|
||||
removeLink(
|
||||
projectId: string | number,
|
||||
issueIId: number,
|
||||
issueLinkId: string | number,
|
||||
options?: BaseRequestOptions,
|
||||
) {
|
||||
const [pId, iId, iLinkId] = [projectId, issueIId, issueLinkId].map(encodeURIComponent);
|
||||
|
||||
return RequestHelper.del(this, `projects/${pId}/issues/${iId}/links/${iLinkId}`, {
|
||||
...options,
|
||||
});
|
||||
}
|
||||
|
||||
participants(projectId: string | number, issueId: number, options?: Sudo) {
|
||||
const [pId, iId] = [projectId, issueId].map(encodeURIComponent);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user