Merge pull request #521 from netlify/github-case-sensitive-repo-name
Make GitHub repo name comparison case-insensitive (fixes #510)
This commit is contained in:
commit
212d9d67da
@ -23,7 +23,7 @@ export default class API {
|
||||
return this.request('/user/repos').then((repos) => {
|
||||
let contributor = false
|
||||
for (const repo of repos) {
|
||||
if (repo.full_name === this.repo && repo.permissions.push) contributor = true;
|
||||
if (repo.full_name.toLowerCase() === this.repo.toLowerCase() && repo.permissions.push) contributor = true;
|
||||
}
|
||||
return contributor;
|
||||
}).catch((error) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user