Firefox WebExtension that rewrites bare GitHub pull request references in merge and squash commit titles before a pull request is merged.
This extension is intended for public distribution on Firefox Add-ons and only runs on GitHub pull request pages.
On pull request pages matching https://github.com/<owner>/<repo>/pull/<number>, the extension watches for GitHub's merge confirmation UI. When the merge or squash commit title field appears, it rewrites bare pull request references like #123 in the title to fully qualified references like <owner>/<repo>#123.
Example:
Merge pull request #123 from owner/branchMerge pull request rust-lang/rust#123 from owner/branchfeat: add thing (#123)feat: add thing (rust-lang/rust#123)
The extension only updates the merge and squash commit title field. It does not modify the commit body.
- Host scope:
https://github.com/*/*/pull/* - Browser permissions:
scripting - Data collection: none
- External network requests: none
- Remote code: none
The extension reads the current pull request URL and the merge or squash title field in the page, rewrites the visible title in place, and does not transmit or persist user data.
- Name:
GitHub Merge Commit Message Rewriter - Summary: Rewrite bare
#123references in GitHub merge and squash commit titles to fully qualifiedowner/repo#123references. - Category suggestion: Developer Tools
- Support URL:
https://github.com/reddevilmidzy/github-commit-msg - Source URL:
https://github.com/reddevilmidzy/github-commit-msg