()
| 265 | } |
| 266 | |
| 267 | async hasWriteAccess() { |
| 268 | try { |
| 269 | const result: Endpoints['GET /repos/{owner}/{repo}']['response']['data'] = await this.request( |
| 270 | this.repoURL, |
| 271 | ); |
| 272 | // update config repoOwner to avoid case sensitivity issues with GitHub |
| 273 | this.repoOwner = result.owner.login; |
| 274 | return result.permissions?.push ?? false; |
| 275 | } catch (error) { |
| 276 | console.error('Problem fetching repo data from GitHub'); |
| 277 | throw error; |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | reset() { |
| 282 | // no op |