diff options
author | 2023-06-06 06:37:59 -0700 | |
---|---|---|
committer | 2023-06-06 22:37:59 +0900 | |
commit | 01222eb76f4e80c1ae04bb4631d79cb560ddfaac (patch) | |
tree | e8c7cf92f5c5f5f6d4b3c6d914f3ab0129ecce7b /source/options.tsx | |
parent | 80bdb03134c431053987f50208e19335a2b29ce4 (diff) | |
download | refined-github-01222eb76f4e80c1ae04bb4631d79cb560ddfaac.tar.gz refined-github-01222eb76f4e80c1ae04bb4631d79cb560ddfaac.tar.zst refined-github-01222eb76f4e80c1ae04bb4631d79cb560ddfaac.zip |
Support full `project` token permission (#6728)
Diffstat (limited to '')
-rw-r--r-- | source/options.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/options.tsx b/source/options.tsx index cd2e829c..6fe62807 100644 --- a/source/options.tsx +++ b/source/options.tsx @@ -72,6 +72,10 @@ async function getTokenScopes(personalToken: string): Promise<string[]> { scopes.push('public_repo'); } + if (scopes.includes('project')) { + scopes.push('read:project'); + } + return scopes; } |