(type: string, name: string, sha: string)
| 1240 | } |
| 1241 | |
| 1242 | async createRef(type: string, name: string, sha: string) { |
| 1243 | const result: Endpoints['POST /repos/{owner}/{repo}/git/refs']['response']['data'] = |
| 1244 | await this.request(`${this.repoURL}/git/refs`, { |
| 1245 | method: 'POST', |
| 1246 | body: JSON.stringify({ ref: `refs/${type}/${name}`, sha }), |
| 1247 | }); |
| 1248 | return result; |
| 1249 | } |
| 1250 | |
| 1251 | async patchRef(type: string, name: string, sha: string, opts: { force?: boolean } = {}) { |
| 1252 | const force = opts.force || false; |
no test coverage detected