(branchName: string, sha: string, opts: { force?: boolean } = {})
| 1322 | } |
| 1323 | |
| 1324 | patchBranch(branchName: string, sha: string, opts: { force?: boolean } = {}) { |
| 1325 | const force = opts.force || false; |
| 1326 | if (force && !this.assertCmsBranch(branchName)) { |
| 1327 | throw Error(`Only CMS branches can be force updated, cannot force update ${branchName}`); |
| 1328 | } |
| 1329 | return this.patchRef('heads', branchName, sha, { force }); |
| 1330 | } |
| 1331 | |
| 1332 | deleteBranch(branchName: string) { |
| 1333 | return this.deleteRef('heads', branchName).catch((err: Error) => { |
no test coverage detected