Support maintain permissions
This commit is contained in:
Родитель
c9446fe192
Коммит
37e055b194
|
@ -113,7 +113,8 @@ class OctoKit {
|
|||
...this.params,
|
||||
username: username,
|
||||
})).data.permission;
|
||||
return (this.writeAccessCache[username] = permissions === 'admin' || permissions === 'write');
|
||||
return (this.writeAccessCache[username] =
|
||||
permissions === 'admin' || permissions === 'write' || permissions === 'maintain');
|
||||
}
|
||||
async repoHasLabel(name) {
|
||||
try {
|
||||
|
|
|
@ -135,7 +135,8 @@ export class OctoKit implements GitHub {
|
|||
username: username,
|
||||
})
|
||||
).data.permission;
|
||||
return (this.writeAccessCache[username] = permissions === 'admin' || permissions === 'write');
|
||||
return (this.writeAccessCache[username] =
|
||||
permissions === 'admin' || permissions === 'write' || permissions === 'maintain');
|
||||
}
|
||||
|
||||
async repoHasLabel(name: string): Promise<boolean> {
|
||||
|
|
Загрузка…
Ссылка в новой задаче