(branchName: string, sha: string, opts: { force?: boolean } = {})
| 1335 | } |
| 1336 | |
| 1337 | patchBranch(branchName: string, sha: string, opts: { force?: boolean } = {}) { |
| 1338 | const force = opts.force || false; |
| 1339 | if (force && !this.assertCmsBranch(branchName)) { |
| 1340 | throw Error(`Only CMS branches can be force updated, cannot force update ${branchName}`); |
| 1341 | } |
| 1342 | return this.patchRef('heads', branchName, sha, { force }); |
| 1343 | } |
| 1344 | |
| 1345 | deleteBranch(branchName: string) { |
| 1346 | return this.deleteRef('heads', branchName).catch((err: Error) => { |
no test coverage detected