From 760cae7540ba7d0c05a17cfb06db05a1e412e34a Mon Sep 17 00:00:00 2001 From: Ardalan Amini Date: Mon, 28 Sep 2020 21:26:31 +0330 Subject: [PATCH] docs: Update README.md --- README.md | 42 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 956bfbe..7b193dd 100644 --- a/README.md +++ b/README.md @@ -2,23 +2,53 @@ Automatic Changelog generator -## Inputs +##Usage -### `token` +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` Exclude selected commit types (comma separated). -## Outputs +### Outputs -### `changelog` +#### `changelog` The generated changelog. -## Example usage +### Example usage ```yaml uses: ardalanamini/auto-changelog@v1.0.0