(type: string, name: string, sha: string)
| 1214 | } |
| 1215 | |
| 1216 | async createRef(type: string, name: string, sha: string) { |
| 1217 | const result: Endpoints['POST /repos/{owner}/{repo}/git/refs']['response']['data'] = |
| 1218 | await this.request(`${this.repoURL}/git/refs`, { |
| 1219 | method: 'POST', |
| 1220 | body: JSON.stringify({ ref: `refs/${type}/${name}`, sha }), |
| 1221 | }); |
| 1222 | return result; |
| 1223 | } |
| 1224 | |
| 1225 | async patchRef(type: string, name: string, sha: string, opts: { force?: boolean } = {}) { |
| 1226 | const force = opts.force || false; |
no test coverage detected