Skip to content

Commit 1f380b1

Browse files
authored
ci: validate PR title against Conventional Commits (#1681)
1 parent 8a7dff9 commit 1f380b1

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ jobs:
3232
fetch-depth: 0
3333
- uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6
3434

35+
# PRs are squash-merged, so the PR title becomes the commit subject on
36+
# master. Validate it against Conventional Commits so the squashed commit
37+
# stays release-tool-friendly even when individual commits don't.
38+
pr-title:
39+
name: Lint PR Title
40+
runs-on: ubuntu-latest
41+
if: github.event_name == 'pull_request'
42+
permissions:
43+
pull-requests: read
44+
steps:
45+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
3549
test:
3650
strategy:
3751
fail-fast: false

0 commit comments

Comments
 (0)