mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-02 14:38:47 +00:00
69 lines
1.5 KiB
Markdown
69 lines
1.5 KiB
Markdown
# Auto Changelog
|
|
|
|
[](https://github.com/ardalanamini/auto-changelog/actions/workflows/test.yml)
|
|
|
|
Automatic Changelog generator
|
|
|
|
## Usage
|
|
|
|
To use this action, your commit messages have to follow the format below:
|
|
|
|
```git
|
|
type(category): description [flag]
|
|
```
|
|
|
|
The `type` must be one of the followings:
|
|
|
|
* `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)
|
|
|
|
> The changelogs will be in the same order as listed above.
|
|
|
|
> If the `type` is not found in the list, it'll be considered as `other`.
|
|
|
|
The `category` is optional and can be anything of your choice.
|
|
|
|
The `flag` is 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 `flag` is not found in the list, it'll be ignored.
|
|
|
|
### Inputs
|
|
|
|
#### `token` **(Required)**
|
|
|
|
Github token.
|
|
|
|
_Default:_ `${{ github.token }}`
|
|
|
|
#### `exclude` **(Optional, Deprecated)**
|
|
|
|
Exclude selected commit types (comma separated).
|
|
|
|
### Outputs
|
|
|
|
#### `changelog`
|
|
|
|
The generated changelog.
|
|
|
|
### Example usage
|
|
|
|
```yaml
|
|
uses: ardalanamini/auto-changelog@v1
|
|
with:
|
|
exclude: 'perf,other,breaking'
|
|
```
|