Auto Changelog
Automatic Changelog generator
Table of Content
Usage
To use this action, your commit messages have to follow the format below:
type(category): description [flag]
-
The
typemust be one ofcommit-typesinput keys. In the changelog output, the value will be used.The changelogs will be in the same order as
commit-typesinput.If the
typedoesn't match any of the providedcommit-typesinput keys, Thedefault-commit-typeinput will be used instead. -
The
categoryis optional and can be anything of your choice. -
The
flagis optional (if provided, it must be surrounded in square brackets) and can be one of the followings:ignore(Omits the commit from the changelog)
If
flagis not found in the list, it'll be ignored.
Commit messages not matching the format mentioned above will be ignored in the
changelogoutput.
Inputs
token
(Optional)
Github token.
Default:
${{ github.token }}
commit-types
(Optional)
Commit types.
Default:
breaking: Breaking Changes
feat: New Features
fix: Bug Fixes
revert: Reverts
perf: Performance Improvements
refactor: Refactors
deps: Dependencies
docs: Documentation Changes
style: Code Style Changes
build: Build System
ci: Continuous Integration
test: Tests
chore: Chores
other: Other Changes
default-commit-type
(Optional)
Default commit type.
This input will be used when the commit message matches none of the defined commit-types input.
Default:
Other Changes
Outputs
changelog
The generated changelog.
Example Usage
Using with default inputs:
- name: Changelog
uses: ardalanamini/auto-changelog@v1
id: changelog
Using with custom inputs:
- name: Changelog
uses: ardalanamini/auto-changelog@v1
id: changelog
with:
token: ${{ github.token }}
commit-types: |
breaking: Breaking Changes
feat: New Features
fix: Bug Fixes
revert: Reverts
perf: Performance Improvements
refactor: Refactors
deps: Dependencies
docs: Documentation Changes
style: Code Style Changes
build: Build System
ci: Continuous Integration
test: Tests
chore: Chores
other: Other Changes
default-commit-type: Other Changes