(
branchName: string,
oldBranchName: string = this.branch,
)
| 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)}`, { |
no test coverage detected