mirror of
https://github.com/webiny/action-conventional-commits.git
synced 2024-11-10 12:09:34 +01:00
27 lines
777 B
Markdown
27 lines
777 B
Markdown
# Conventional Commits GitHub Action
|
|
|
|
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.
|
|
|
|
![Screenshot](/docs/screenshot.png)
|
|
|
|
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.
|
|
|
|
### Usage
|
|
Latest version: `v1.0.1`
|
|
|
|
```yml
|
|
name: Conventional Commits
|
|
|
|
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
|
|
```
|