whatchanged
whatchanged copied to clipboard
Elegant changelog generator. 优雅的变更日志生成器
English | 中文简体
whatchanged
An elegant changelog generator. follow the Conventional Commits Specification to generate a beautiful and neat change log.
Focus on Elegant/Simple/Efficient/Scalable
Feature:
- [x] Cross-platform support
- [x] Generation for local/Remote git repositories
- [x] Preset template for generation
- [x] Custom template file
- [x] Conventional Commits Specification Parser
- [x] Generate multiple versions of change logs
- [x] Github Action
- [x] Visual Studio Code extension
Usage
$ whatchanged --help
Install
-
cask install github.com/release-lab/whatchanged -
Shell (Mac/Linux)
curl -fsSL https://github.com/release-lab/install/raw/v1/install.sh | bash -s -- -r=release-lab/whatchanged -
PowerShell (Windows):
$r="release-lab/whatchanged";iwr https://github.com/release-lab/install/raw/v1/install.ps1 -useb | iex -
Github release page (All platforms)
download the executable file and put the executable file to
$PATH -
Build and install from source using Golang (All platforms)
go install github.com/release-lab/whatchanged/cmd/whatchanged
Use as library
# install package
go get -v -u github.com/release-lab/whatchanged
package main
import (
"context"
"bytes"
"github.com/release-lab/whatchanged"
)
func main() {
output := bytes.NewBuffer([]byte{})
option := whatchanged.Options{
Version: []string{"HEAD~"}
}
err := whatchanged.Generate(context.Background(), "/path/to/git/project", output, &option)
if err!=nil{
panic(err)
}
println(output)
}
FAQ
- How it works?
- How to custom generation template?
License
The Anti-996 License