gh-annotate - Add GitHub links to Markdown files
gh-annotate file
... | gh-annotate > outfile
Adds GitHub links to Markdown files. Perfect for maintaining changelog files and other Markdown artifacts.
Running gh-annotate(1) on a file will perform the following things:
#847 to issue links.@rstacruz to user links.v0.2.4(...v0.2.3) into compare links.It Is idempotent, so running (and re-running) it on a file should have no side effects.
The file to operate on. If provided, it will be written to in place.
-h, --help Displays the help screen.
--version Displays version information.
gh-annotate(1) is available via npm as gh-annotate.
npm install -g gh-annotate
Given this file:
$ cat CHANGELOG.md
## v0.8.2
* Fix blabberdupes (@manilajs, #2)
* Improve dapperdonks (@mashupgarage, #8)
Run it, and you get this:
$ gh-annotate CHANGELOG.md
$ cat CHANGELOG.md
## v0.8.2
* Fix blabberdupes ([@manilajs], [#2])
* Improve dapperdonks ([@mashupgarage], [#8])
gh-annotate (c) 2015+, Rico Sta. Cruz. Released under the MIT License. Authored and maintained by Rico Sta. Cruz with help from contributors.