summaryrefslogtreecommitdiff
path: root/source/options.tsx
diff options
context:
space:
mode:
authorGravatar Daniel M <danielmiao2019@icloud.com> 2023-06-06 06:37:59 -0700
committerGravatar GitHub <noreply@github.com> 2023-06-06 22:37:59 +0900
commit01222eb76f4e80c1ae04bb4631d79cb560ddfaac (patch)
treee8c7cf92f5c5f5f6d4b3c6d914f3ab0129ecce7b /source/options.tsx
parent80bdb03134c431053987f50208e19335a2b29ce4 (diff)
downloadrefined-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.tsx4
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;
}