Yevgeny Petukhov 2020-06-12 11:24:58 +03:00 committed by GitHub
parent 3281d063b8
commit 480558f77f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);