(type: string, name: string, sha: string)
| 1253 | } |
| 1254 | |
| 1255 | async createRef(type: string, name: string, sha: string) { |
| 1256 | const result: Endpoints['POST /repos/{owner}/{repo}/git/refs']['response']['data'] = |
| 1257 | await this.request(`${this.repoURL}/git/refs`, { |
| 1258 | method: 'POST', |
| 1259 | body: JSON.stringify({ ref: `refs/${type}/${name}`, sha }), |
| 1260 | }); |
| 1261 | return result; |
| 1262 | } |
| 1263 | |
| 1264 | async patchRef(type: string, name: string, sha: string, opts: { force?: boolean } = {}) { |
| 1265 | const force = opts.force || false; |
no test coverage detected