action-conventional-commits/README.md

28 lines
777 B
Markdown
Raw Normal View History

2020-06-11 09:05:03 +02:00
# Conventional Commits GitHub Action
2020-06-11 09:55:51 +02:00
A simple GitHub action that makes sure all commit messages are following the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0-beta.2/) specification. If not, workflow will fail.
2020-06-11 10:01:04 +02:00
![Screenshot](/docs/screenshot.png)
2020-06-11 09:57:07 +02:00
Note that, typically, you would make this check on a pre-commit hook (for example, using something like [Commitlint](https://commitlint.js.org/)), but those can easily be skipped, hence this GitHub action.
2020-06-11 09:50:04 +02:00
### Usage
2020-06-11 09:55:51 +02:00
Latest version: `v1.0.1`
2020-06-11 09:50:04 +02:00
```yml
2020-06-11 09:57:43 +02:00
name: Conventional Commits
2020-06-11 09:50:04 +02:00
on:
pull_request:
branches: [ master ]
jobs:
build:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: webiny/action-conventional-commits@v1.0.1
```