Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gh-msg with all npm packages installed. Try it out:

var ghMsg = require("gh-msg")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gh-msg v0.0.2

Git commit message hook for GitHub issues


A git commit-msg hook that integrates with Github issues.



npm install -g gh-msg


Enter the directory with the git repo you wish to add the hook to, and then run:

gh-msg user/repo

Replacing user/repo with the appropriate user/organization and repo name. From there, make your changes.

When committing, put either GH-1234 or #1234 (replacing the number with the issue's number) on the first line. Make sure that's the only thing on the first line. Then, gh-msg will use the Github API to request the issue's title, and replace your commit message with something like this:

Fixes GH-1234 - "Your issue's title here"

Anything on subsequent lines will be added to the commit as well.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free