(type: string, name: string, sha: string, opts: { force?: boolean } = {})
| 1262 | } |
| 1263 | |
| 1264 | async patchRef(type: string, name: string, sha: string, opts: { force?: boolean } = {}) { |
| 1265 | const force = opts.force || false; |
| 1266 | const result: Endpoints['PATCH /repos/{owner}/{repo}/git/refs/{ref}']['response']['data'] = |
| 1267 | await this.request(`${this.repoURL}/git/refs/${type}/${encodeURIComponent(name)}`, { |
| 1268 | method: 'PATCH', |
| 1269 | body: JSON.stringify({ sha, force }), |
| 1270 | }); |
| 1271 | return result; |
| 1272 | } |
| 1273 | |
| 1274 | deleteRef(type: string, name: string) { |
| 1275 | return this.request(`${this.repoURL}/git/refs/${type}/${encodeURIComponent(name)}`, { |
no test coverage detected