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

Method createBranch

packages/decap-cms-backend-forgejo/src/API.ts:555–566  ·  view source on GitHub ↗
(
    branchName: string,
    oldBranchName: string = this.branch,
  )

Source from the content-addressed store, hash-verified

553 }
554
555 async createBranch(
556 branchName: string,
557 oldBranchName: string = this.branch,
558 ): Promise<ForgejoBranch> {
559 return this.request(`${this.repoURL}/branches`, {
560 method: 'POST',
561 body: JSON.stringify({
562 new_branch_name: branchName,
563 old_ref_name: oldBranchName,
564 }),
565 });
566 }
567
568 async deleteBranch(branchName: string): Promise<void> {
569 await this.request(`${this.repoURL}/branches/${encodeURIComponent(branchName)}`, {

Callers 2

editorialWorkflowGitMethod · 0.95
API.spec.jsFile · 0.45

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected