Make GitHub repo name comparison case-insensitive (fixes #510)

This commit is contained in:
Benaiah Mischenko 2017-08-11 12:19:01 -07:00
parent 6805a6936d
commit b3b13d311c

View File

@ -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) => {