mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-02 14:38:47 +00:00
59 lines
915 B
Markdown
59 lines
915 B
Markdown
# Auto Changelog
|
|
|
|
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`
|
|
* `build`
|
|
* `ci`
|
|
* `chore`
|
|
* `docs`
|
|
* `feat`
|
|
* `fix`
|
|
* `other`
|
|
* `perf`
|
|
* `refactor`
|
|
* `revert`
|
|
* `style`
|
|
* `test`
|
|
|
|
> 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). (eg. `breaking`)
|
|
|
|
### Inputs
|
|
|
|
#### `token`
|
|
|
|
**Required** Github token.
|
|
|
|
#### `exclude`
|
|
|
|
Exclude selected commit types (comma separated).
|
|
|
|
### Outputs
|
|
|
|
#### `changelog`
|
|
|
|
The generated changelog.
|
|
|
|
### Example usage
|
|
|
|
```yaml
|
|
uses: ardalanamini/[email protected]
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
exclude: 'perf,other,breaking'
|
|
```
|