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

Method getBranchPullRequest

packages/decap-cms-backend-azure/src/API.ts:655–663  ·  view source on GitHub ↗
(branch: string)

Source from the content-addressed store, hash-verified

653 }
654
655 async getBranchPullRequest(branch: string) {
656 const pullRequests = await this.getPullRequests(branch);
657
658 if (pullRequests.length <= 0) {
659 throw new EditorialWorkflowError('content is not under editorial workflow', true);
660 }
661
662 return pullRequests[0];
663 }
664
665 async getDifferences(to: string) {
666 const result = await this.requestJSON<AzureGitCommitDiffs>({

Callers 5

getStatusesMethod · 0.95

Calls 1

getPullRequestsMethod · 0.95

Tested by

no test coverage detected