Automatically create release notes and a changelog.
Automatically create release notes and a changelog.
# Download executable
curl https://raw.githubusercontent.com/ktmeaton/autologs/main/autologs -o autologs
# Add to path
sudo mv autologs /usr/local/bin/
# Test installation
autologs --help
git submodule add https://github.com/ktmeaton/autologs
./autologs/autologs --help
List parameters autologs will use:
$ autologs
Repository: ktmeaton/autologs
Commit URL: https://github.com/ktmeaton/autologs/commit
Old tag: a4c28c5
New tag: HEAD
Max Commits: 20
Notes Directory: docs/notes
Output File: /dev/stdout
Run: ListParams
autologs --commits --max-commits 3
1f05f16
proper writing to output filef8c3eed
bugfix in repo PR url0915673
Merge pull request #1 from ktmeaton/devautologs --release --old-tag v0.1.0 --new-tag v0.1.1 --max-commits 5
v0.1.1
Notes
Pull Requests
pull/3
Fix Jekyll ConfigCommits
4d43066
Merge pull request #3 from ktmeaton/deved21463
fix jekyll config lintingbd19b91
Merge branch ‘main’ of https://github.com/ktmeaton/autologs into mainfc54f6f
alternate way of showing outputa949079
Set theme jekyll-theme-slateThe optional section “### Notes” will appear if a notes file matching the tag name exists. The notes file must contain an enumerated list of notes.
autologs parameters:
--new-tag v0.1.0
--notes-dir docs/notes/
matching file: docs/notes/Notes_v0.1.0.md
1. Create repository
1. Add scripts.
1. Add release workflow.
autologs --changelog -o CHANGELOG.md
See CHANGELOG.md for full output.
$ autologs --help
Automatically create commit history, release notes, and a changelog.
Syntax: autologs [-h|-v|-o|--old-tag|--new-tag|--max-commits|--notes-dir|--commits|--release]
Options:
-h, --help Print this Help.
-v, --version Print software version and exit.
-o, --output Output file. [ default: /dev/stdout ]
--old-tag An earlier tag/commit hash to compare to. [ default: a4c28c5 ]
--new-tag A newer tag/commit hash to compare to. [ default: HEAD ]
--max-commits The maximum number of commits to print. [ default: 20 ]
--notes-dir A directory containing manual notees. [ default: docs/notes ]
--commits Print commit history.
--release Print release notes.
--changelog Print changelog.
Author: Katherine Eaton
Commit History Style: https://github.com/yuzu-emu/yuzu-mainline/releases
Argument Parsing: https://medium.com/@Drew_Stokes/bash-argument-parsing-54f3b81a6a8f
Help Function: https://opensource.com/article/19/12/help-bash-program