Skip to content

Commit

Permalink
feat(Merge Request): Add Approval State endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Bombonato committed Oct 1, 2019
1 parent f8ca6f3 commit 41c4653
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/core/services/MergeRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,20 @@ class MergeRequests extends BaseService {
return RequestHelper.get(this, url, options);
}

approvalState(
projectId: ProjectId,
mergerequestIId: MergeRequestId,
options: { sha?: string } & BaseRequestOptions,
) {
const [pId, mIId] = [projectId, mergerequestIId].map(encodeURIComponent);

return RequestHelper.post(
this,
`projects/${pId}/merge_requests/${mIId}/approval_state`,
options,
);
}

approvers(
projectId: ProjectId,
approverIds: UserId[],
Expand Down

0 comments on commit 41c4653

Please sign in to comment.