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

Method getBranchMergeRequest

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

Source from the content-addressed store, hash-verified

773 }
774
775 async getBranchMergeRequest(branch: string) {
776 const mergeRequests = await this.getMergeRequests(branch);
777 if (mergeRequests.length <= 0) {
778 throw new EditorialWorkflowError('content is not under editorial workflow', true);
779 }
780
781 return mergeRequests[0];
782 }
783
784 async getDifferences(to: string, from = this.branch) {
785 if (to === from) {

Callers 7

editorialWorkflowGitMethod · 0.95
getStatusesMethod · 0.95

Calls 1

getMergeRequestsMethod · 0.95

Tested by

no test coverage detected