Skip to content

Commit df1861a

Browse files
committed
chore: validate PR titles with conventional commits
1 parent 32d6d3e commit df1861a

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/lint-pr.yml

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

0 commit comments

Comments
 (0)