Skip to content

reddevilmidzy/github-commit-msg

Repository files navigation

github-commit-msg

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.

Behavior

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/branch
  • Merge pull request rust-lang/rust#123 from owner/branch
  • feat: 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.

Permissions and Data Use

  • 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.

Store Listing Draft

  • Name: GitHub Merge Commit Message Rewriter
  • Summary: Rewrite bare #123 references in GitHub merge and squash commit titles to fully qualified owner/repo#123 references.
  • Category suggestion: Developer Tools
  • Support URL: https://github.com/reddevilmidzy/github-commit-msg
  • Source URL: https://github.com/reddevilmidzy/github-commit-msg

About

Automation customized Default GH merge commit msg

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors