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

Method getBranchMergeRequest

packages/decap-cms-backend-gitlab/src/API.ts:766–773  ·  view source on GitHub ↗
(branch: string)

Source from the content-addressed store, hash-verified

764 }
765
766 async getBranchMergeRequest(branch: string) {
767 const mergeRequests = await this.getMergeRequests(branch);
768 if (mergeRequests.length <= 0) {
769 throw new EditorialWorkflowError('content is not under editorial workflow', true);
770 }
771
772 return mergeRequests[0];
773 }
774
775 async getDifferences(to: string, from = this.branch) {
776 if (to === from) {

Callers 7

editorialWorkflowGitMethod · 0.95
getStatusesMethod · 0.95

Calls 1

getMergeRequestsMethod · 0.95

Tested by

no test coverage detected