(branchName: string, sha: string, opts: { force?: boolean } = {})
| 1296 | } |
| 1297 | |
| 1298 | patchBranch(branchName: string, sha: string, opts: { force?: boolean } = {}) { |
| 1299 | const force = opts.force || false; |
| 1300 | if (force && !this.assertCmsBranch(branchName)) { |
| 1301 | throw Error(`Only CMS branches can be force updated, cannot force update ${branchName}`); |
| 1302 | } |
| 1303 | return this.patchRef('heads', branchName, sha, { force }); |
| 1304 | } |
| 1305 | |
| 1306 | deleteBranch(branchName: string) { |
| 1307 | return this.deleteRef('heads', branchName).catch((err: Error) => { |
no test coverage detected