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

Method getBranchPullRequest

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

Source from the content-addressed store, hash-verified

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

Callers 5

getStatusesMethod · 0.95

Calls 1

getPullRequestsMethod · 0.95

Tested by

no test coverage detected