Add MergeRequest.participants request

This commit is contained in:
Aleksei Tsikov 2019-03-05 20:37:13 +02:00
parent 5858fcbbe7
commit 5c04ea490a

View File

@ -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)}` : '';