Skip to content

Commit bf63368

Browse files
authored
chore: validate PR titles with conventional commits (#629)
* chore: validate PR titles with conventional commits * chore: run PR title lint on reopen
1 parent abf259b commit bf63368

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/lint-pr.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Lint PR
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- reopened
9+
- synchronize
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
lint-pr:
17+
name: Validate PR title against Conventional Commits
18+
runs-on: ubuntu-24.04
19+
timeout-minutes: 5
20+
permissions:
21+
contents: read
22+
pull-requests: read
23+
steps:
24+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # pin v6.1.1
25+
env:
26+
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)