()
| 169 | } |
| 170 | |
| 171 | async hasWriteAccess() { |
| 172 | try { |
| 173 | const result: ForgejoRepository = await this.request(this.repoURL); |
| 174 | // update config repoOwner to avoid case sensitivity issues with Forgejo |
| 175 | this.repoOwner = result.owner.login; |
| 176 | return result.permissions.push; |
| 177 | } catch (error) { |
| 178 | console.error('Problem fetching repo data from Forgejo'); |
| 179 | throw error; |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | reset() { |
| 184 | // no op |