Skip to content

Commit

Permalink
Merge pull request #280 from atsikov/merge-request-participants
Browse files Browse the repository at this point in the history
feat: Add MergeRequest.participants request
  • Loading branch information
jdalrymple authored Mar 5, 2019
2 parents 5858fcb + 5c04ea4 commit b11a4f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/services/MergeRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ class MergeRequests extends BaseService {
return RequestHelper.put(this, `projects/${pId}/${mergeRequest}approvers`, options);
}

participants(projectId: ProjectId, mergerequestId: MergeRequestId) {
const [pId, mId] = [projectId, mergerequestId].map(encodeURIComponent);

return RequestHelper.get(this, `projects/${pId}/merge_requests/${mId}/participants`);
}

pipelines(projectId: ProjectId, { mergerequestId }: { mergerequestId?: string } = {}) {
const pId = encodeURIComponent(projectId);
const mergeRequest = mergerequestId ? `merge_requests/${encodeURIComponent(mergerequestId)}` : '';
Expand Down

0 comments on commit b11a4f8

Please sign in to comment.