MCPcopy Create free account
hub / github.com/decaporg/decap-cms / closeMergeRequest

Method closeMergeRequest

packages/decap-cms-backend-gitlab/src/API.ts:965–973  ·  view source on GitHub ↗
(mergeRequest: GitLabMergeRequest)

Source from the content-addressed store, hash-verified

963 }
964
965 async closeMergeRequest(mergeRequest: GitLabMergeRequest) {
966 await this.requestJSON({
967 method: 'PUT',
968 url: `${this.repoURL}/merge_requests/${mergeRequest.iid}`,
969 params: {
970 state_event: 'close',
971 },
972 });
973 }
974
975 async getDefaultBranch() {
976 const branch: GitLabBranch = await this.getBranch(this.branch);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected