This Chrome extension adds two useful features to GitHub pull request pages:
- Location: Next to the PR title
- Action: Copies PR title and URL to clipboard in format:
PR Title: https://link-to-pr - Feedback: Shows "Copied!" with green checkmark on success, "Failed" with error icon on failure
- Works on: All PR pages (draft, open, closed, merged)
- Location: Next to the Copilot reviewer link (
/apps/copilot-pull-request-reviewer) - Action: Automates requesting a review from Copilot
- Feedback: Shows "Requested!" on success, or helpful message if manual action needed
- Works on: Only draft PRs (button only appears when PR has "Draft" status)
-
manifest.json - Chrome Extension Manifest V3 configuration
- Permissions:
clipboardWrite - Content scripts: Runs on GitHub PR pages (
https://github.com/*/*/pull/*) - Icons: 16x16, 48x48, 128x128 PNG files
- Permissions:
-
content.js - Main content script (220+ lines)
- Implements both features with proper error handling
- Uses MutationObserver to handle dynamic content loading
- Provides visual feedback for all actions
- No external dependencies
-
Icon files (icon16.png, icon48.png, icon128.png)
- Simple branded icons for the extension
-
test.html - Local test page
- Simulates GitHub PR page structure
- Allows testing without real GitHub access
- Includes automatic detection of extension features
-
TESTING.md - Comprehensive testing guide
- Installation instructions
- Feature testing scenarios
- Troubleshooting guide
- Debugging tips
-
README.md - User documentation
- Feature descriptions
- Installation steps
- Usage instructions
- Development guidelines
- Minimal Permissions: Only requests
clipboardWritepermission - No External Dependencies: Pure JavaScript, no libraries
- GitHub Theme Integration: Uses GitHub's button classes and color scheme
- Robust Error Handling: Graceful fallbacks and clear error messages
- Visual Feedback: All actions provide immediate visual confirmation
- Dynamic Content Support: Handles GitHub's AJAX page updates
- Manifest V3: Uses latest Chrome extension standard
- ✅ CodeQL scan completed with 0 vulnerabilities
- ✅ No sensitive data access
- ✅ Scoped to GitHub PR pages only
- ✅ No network requests
- ✅ No background scripts
- ✅ Chrome (primary target)
- ✅ Microsoft Edge (Chromium)
- ✅ Brave (Chromium)
- ✅ Other Chromium-based browsers
- Total: ~20 KB
- Code: ~15 KB (manifest.json + content.js)
- Icons: ~5 KB (3 PNG files)
- Local HTML test page for initial validation
- Manual testing on actual GitHub PR pages
- Test both draft and non-draft PRs
- Verify clipboard functionality
- Check visual feedback and error handling
- Add options page for customization
- Support for GitHub Enterprise
- Keyboard shortcuts
- More copy format options
- Additional reviewer automation features
- The "Request Review" feature attempts to automate UI interactions
- GitHub may change their DOM structure, requiring selector updates
- Extension provides helpful messages when automation isn't possible
- Users can always fall back to manual review requests