You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a github workflow in the `.github` folder, e.g. `.github/workflows/commitlint.yml`:
8
+
9
+
```yaml
10
+
name: Commitlint
11
+
on: [pull_request]
12
+
13
+
jobs:
14
+
commitlint:
15
+
runs-on: ubuntu-latest
16
+
env:
17
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18
+
steps:
19
+
- uses: actions/checkout@v1
20
+
- uses: wagoid/commitlint-github-action@v1.0.0
21
+
```
22
+
23
+
## Inputs
24
+
25
+
### `configFile`
26
+
27
+
The path to your commitlint config file. Default `commitlint.config.js`.
28
+
29
+
## About `extends` in your config file
30
+
31
+
This is a [`Docker` action](https://github.com/actions/toolkit/blob/e2adf403d6d14a9ca7474976ccaca20f72ff8209/docs/action-types.md#why-would-i-choose-a-docker-action), and was made like this so that you can run it with minimum setup, regardless of your repo's environment. It comes packed with the most famous shared configurations that you can use in your commitlint config's `extends` field:
0 commit comments