Git Changelog Command Line
This is a command line tool for generating a changelog, or releasenotes, from a GIT repository. It uses the Git Changelog Lib.
There are some screenshots here.
The runnable can be found in Maven Central or NPM.
A changelog can be created like this.
npx git-changelog-command-line -std -tec "
# Changelog
Changelog for {{ownerName}} {{repoName}}.
{{#tags}}
#
{{#issues}}
{{#hasIssue}}
{{#hasLink}}
#
{{/hasLink}}
{{^hasLink}}
#
{{/hasLink}}
{{/hasIssue}}
{{^hasIssue}}
#
{{/hasIssue}}
{{#commits}}
**{{{messageTitle}}}**
{{#messageBodyItems}}
* {{.}}
{{/messageBodyItems}}
[{{hash}}](https://github.com/{{ownerName}}/{{repoName}}/commit/{{hash}}) {{authorName}} *{{commitTime}}*
{{/commits}}
{{/issues}}
{{/tags}}
"
Or, with the JAR from Central, do java -jar git-changelog-command-line-*.jar ....
There are more examples here.
Usage
Or from command line:
Checkout the Git Changelog Lib for more documentation.
Developer instructions
To build the code, have a look at .travis.yml
.
To do a release you need to do ./gradlew release
and release the artifact from staging. More information here.