fix: update repo owner from GitHub API to match casing (#3410)
This commit is contained in:
parent
05a1c91a3c
commit
c2e7a24dc2
@ -207,6 +207,8 @@ export default class API {
|
||||
async hasWriteAccess() {
|
||||
try {
|
||||
const result: Octokit.ReposGetResponse = await this.request(this.repoURL);
|
||||
// update config repoOwner to avoid case sensitivity issues with GitHub
|
||||
this.repoOwner = result.owner.login;
|
||||
return result.permissions.push;
|
||||
} catch (error) {
|
||||
console.error('Problem fetching repo data from GitHub');
|
||||
|
Loading…
x
Reference in New Issue
Block a user