Skip to content

Commit 41c4653

Browse files
author
Leonardo Bombonato
committed
feat(Merge Request): Add Approval State endpoint
1 parent f8ca6f3 commit 41c4653

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/core/services/MergeRequests.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,20 @@ class MergeRequests extends BaseService {
101101
return RequestHelper.get(this, url, options);
102102
}
103103

104+
approvalState(
105+
projectId: ProjectId,
106+
mergerequestIId: MergeRequestId,
107+
options: { sha?: string } & BaseRequestOptions,
108+
) {
109+
const [pId, mIId] = [projectId, mergerequestIId].map(encodeURIComponent);
110+
111+
return RequestHelper.post(
112+
this,
113+
`projects/${pId}/merge_requests/${mIId}/approval_state`,
114+
options,
115+
);
116+
}
117+
104118
approvers(
105119
projectId: ProjectId,
106120
approverIds: UserId[],

0 commit comments

Comments
 (0)