Sign inSign up

tomasbjerre/git-changelog-command-line

By tomasbjerre

•Updated 14 days ago

Command line tool that generates changelog from a GIT repository.

Image
0

6.8K

tomasbjerre/git-changelog-command-line repository overview

Documentation in the Github repository: https://github.com/tomasbjerre/git-changelog-command-line⁠


⁠Changelog

Changelog can be generated with:

git-changelog-command-line -std

And you can have your own template rendered with a context that includes the changes:

git-changelog-command-line -std -tec "
  template here!
  See documentation in git-changelog-command-line at Github.
"

⁠Versioning

Versions can be determined from git commits and tags like this:

highestVersion=$(git-changelog-command-line \
 --print-highest-version)

highestVersionTag=$(git-changelog-command-line \
 --print-highest-version-tag)

currentVersion=$(git-changelog-command-line \
 --patch-version-pattern "^fix.*" \
 --print-current-version)

if [ -z "$highestVersionTag" ]; then
  echo "This is the first version in the repo, using 0.0.1 as version"
  currentVersion=0.0.1
else if [ "$currentVersion" == "$highestVersion" ]; then
    echo "No changes made that can be released"
else
    echo "Changes detected and a new $currentVersion release can be made"
fi

Tag summary

Content type

Image

Digest

sha256:adb5b0071…

Size

80.9 MB

Last updated

14 days ago

docker pull tomasbjerre/git-changelog-command-line:4.0.5