Skip to content

frgrisk/gotaglog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gotaglog

Go Report Card

GoTagLog is a simple command-line application to automatically generate a changelog from git tags based on the semantic versioning. It categorizes commits into groups and outputs them in a formatted markdown file or directly to the terminal with highlighting.

Prerequisites

To use GoTagLog, you'll need to have:

  • Go installed on your local machine.

Installation

go install github.com/frgrisk/gotaglog@latest

Usage

To generate a changelog, use the following command:

gotaglog

Flags

The application accepts several flags:

  • --config: path to configuration file (default is $HOME/.gotaglog.yaml).
  • -o, --output: path to output file (default if to print to stdout).
  • -r, --repo: repo to generate changelog for (default is current directory).
  • -t, --tag: semantic version tag for unreleased changes (default is "unreleased").
  • --inc-patch: increment patch version (default is false). Takes precedence over --tag.
  • --inc-minor: increment patch version (default is false). Takes precedence over --inc-patch and --tag.
  • --inc-major: increment patch version (default is false). Takes precedence over --inc-minor, --inc-patch, and --tag.
  • --unreleased: show only unreleased changes.

Environment variables

In addition to flags and the configuration file, you can also use environment variables to set parameters. The application will automatically look for any environment variables beginning with GOTAGLOG_. For instance, to set the repo, you could use the following command:

export GOTAGLOG_REPO=/path/to/repo

License

GoTagLog is released under the MIT License. See the LICENSE file for more details.

Acknowledgments

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages