Improve token setup docs, add fine-grained token support, fix host_permissions #311
+4,105
−4,737
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves token documentation, adds fine-grained PAT format support for future compatibility, and fixes a bug preventing API requests in local development.
Changes
1. Added fine-grained token format support in options.html
Updated the token input pattern to accept
github_pat_*format:While fine-grained PATs don't work yet (GitHub doesn't offer a Notifications permission), this future-proofs the extension for when GitHub adds that permission.
2. Fixed missing
host_permissionsin manifest.jsonAdded
"host_permissions": ["https://api.github.com/*"]which is required for Manifest V3 extensions to make cross-origin fetch requests. Without this, locally-loaded extensions fail silently.3. Improved token setup documentation
notifications(required) vsrepo(optional for private repo deep links)reposcope4. Other documentation improvements
5. Security fixes
Ran
npm audit fixto address vulnerabilities with non-breaking updates.Test plan
notificationsscope works (badge count)🤖 Generated with Claude Code