We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cac20fa commit 0bc2fcfCopy full SHA for 0bc2fcf
.github/workflows/node.js.yml
@@ -1,6 +1,6 @@
1
name: Node.js CI
2
3
-on: [push]
+on: [push, pull_request]
4
5
concurrency:
6
group: ci-${{ github.workflow }}-${{ github.ref }}
@@ -31,6 +31,14 @@ jobs:
31
- name: Installing dependencies
32
run: pnpm install --frozen-lockfile
33
34
+ - name: Linting last commit message
35
+ if: github.event_name == 'push'
36
+ run: pnpm exec commitlint --last --verbose
37
+
38
+ - name: Linting PR commit messages
39
+ if: github.event_name == 'pull_request'
40
+ run: pnpm exec commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
41
42
- name: Linting
43
run: pnpm lint
44
0 commit comments