()
| 143 | } |
| 144 | |
| 145 | async hasWriteAccess() { |
| 146 | try { |
| 147 | const result: GiteaRepository = await this.request(this.repoURL); |
| 148 | // update config repoOwner to avoid case sensitivity issues with Gitea |
| 149 | this.repoOwner = result.owner.login; |
| 150 | return result.permissions.push; |
| 151 | } catch (error) { |
| 152 | console.error('Problem fetching repo data from Gitea'); |
| 153 | throw error; |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | reset() { |
| 158 | // no op |
no test coverage detected