forked from bitcoinroyale/explorer
-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (32 loc) · 1.01 KB
/
commitlint.yml
File metadata and controls
37 lines (32 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: "commitlint"
on:
pull_request:
types:
- opened
- synchronize
jobs:
lint-commits:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Node.js
uses: actions/setup-node@v2-beta
with:
node-version: 10
- uses: bahmutov/npm-install@v1
- name: commitlint
uses: amannn/action-semantic-pull-request@v3.4.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
wip: true
# When using "Squash and merge" on a PR with only one commit, GitHub
# will suggest using that commit message instead of the PR title for the
# merge commit, and it's easy to commit this by mistake. Enable this option
# to also validate the commit message for one commit PRs.
validateSingleCommit: true