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

Method closeMergeRequest

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

Source from the content-addressed store, hash-verified

973 }
974
975 async closeMergeRequest(mergeRequest: GitLabMergeRequest) {
976 await this.requestJSON({
977 method: 'PUT',
978 url: `${this.repoURL}/merge_requests/${mergeRequest.iid}`,
979 params: {
980 state_event: 'close',
981 },
982 });
983 }
984
985 async getDefaultBranch() {
986 const branch: GitLabBranch = await this.getBranch(this.branch);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected