Skip to content

Commit b11a4f8

Browse files
authored
Merge pull request #280 from atsikov/merge-request-participants
feat: Add MergeRequest.participants request
2 parents 5858fcb + 5c04ea4 commit b11a4f8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/services/MergeRequests.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ class MergeRequests extends BaseService {
107107
return RequestHelper.put(this, `projects/${pId}/${mergeRequest}approvers`, options);
108108
}
109109

110+
participants(projectId: ProjectId, mergerequestId: MergeRequestId) {
111+
const [pId, mId] = [projectId, mergerequestId].map(encodeURIComponent);
112+
113+
return RequestHelper.get(this, `projects/${pId}/merge_requests/${mId}/participants`);
114+
}
115+
110116
pipelines(projectId: ProjectId, { mergerequestId }: { mergerequestId?: string } = {}) {
111117
const pId = encodeURIComponent(projectId);
112118
const mergeRequest = mergerequestId ? `merge_requests/${encodeURIComponent(mergerequestId)}` : '';

0 commit comments

Comments
 (0)