Skip to content

dragoneyelabs/changelog-generator

Repository files navigation

Changelog Generator

A simple changelog generator for Git projects, implemented in Go.

How it works

changelog-generator is based on the Commit Convention.

In order to the generated changelog shows the commits properly classified, every commit has to be formatted as:

<type>: <subject>

Where the supported types are:

  • feat
  • refactor
  • fix
  • test
  • docs

Example: feat: add new functionality

Getting Started

Installation

Go

$ go get -u github.com/dragoneyelabs/changelog-generator

Source

Clone the Github repository into your local machine and build the binary:

$ make build [linux=1] [darwin=1] [windows=1]

or

$ GOARCH=<386, amd64, arm, ...> GOOS=<linux, darwin, windows, ...> go build -o bin/changelog-generator github.com/dragoneyelabs/changelog-generator

Usage

In order to use the changelog-generator, it is needed the path to a Git project.

Optionally, we can indicate the repository type as well. Only bitbucket and github types are currently supported.

Go

$ go run *.go -path=<project path> -repo=<bitbucket,github>

Binary

$ changelog-generator -path=<project path> -repo=<bitbucket,github>

Docker

Alternatively, we can run the changelog generator from a Docker container:

$ docker run -v `pwd`:/changelog pruizpar/changelog-generator:master -path=/changelog -repo=github

About

Simple Changelog Generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published