Skip to content

Commit 484a752

Browse files
ci: lint both commit messages and pr title
1 parent 526e298 commit 484a752

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
name: Lint PR Title
1+
name: Conventional Commits Check
22

33
on:
4-
pull_request_target:
5-
types:
6-
- opened
7-
- edited
8-
- reopened
4+
pull_request:
5+
branches: [main]
96

107
jobs:
11-
lint-pr-title:
12-
permissions:
13-
pull-requests: read
14-
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/conventional-commits.yml@conventional-commits-v1.0.1
8+
check-conventional-commits:
9+
name: Conventional Commits
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Check Commit Conventions
15+
uses: webiny/action-conventional-commits@v1.3.0
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Lint PR Title
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- reopened
9+
10+
jobs:
11+
lint-pr-title:
12+
permissions:
13+
pull-requests: read
14+
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/conventional-commits.yml@conventional-commits-v1.0.1

0 commit comments

Comments
 (0)