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

Method createPR

packages/decap-cms-backend-forgejo/src/API.ts:672–686  ·  view source on GitHub ↗
(
    title: string,
    head: string,
    body: string = DEFAULT_PR_BODY,
  )

Source from the content-addressed store, hash-verified

670 }
671
672 async createPR(
673 title: string,
674 head: string,
675 body: string = DEFAULT_PR_BODY,
676 ): Promise<ForgejoPullRequest> {
677 return this.request(`${this.originRepoURL}/pulls`, {
678 method: 'POST',
679 body: JSON.stringify({
680 title,
681 head: await this.getHeadReference(head),
682 base: this.branch,
683 body,
684 }),
685 });
686 }
687
688 async updatePR(number: number, state: 'open' | 'closed'): Promise<ForgejoPullRequest> {
689 return this.request(`${this.originRepoURL}/pulls/${number}`, {

Callers 3

editorialWorkflowGitMethod · 0.95
API.spec.jsFile · 0.45

Calls 2

requestMethod · 0.95
getHeadReferenceMethod · 0.95

Tested by

no test coverage detected