Skip to content

Commit 324ae88

Browse files
committed
add lint pr job
1 parent 04c222d commit 324ae88

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/lint-pr.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 'Lint PR'
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
- reopened
10+
11+
permissions:
12+
pull-requests: read
13+
14+
jobs:
15+
main:
16+
name: Validate PR title
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: amannn/action-semantic-pull-request@v5
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
with:
23+
requireScope: false
24+
# If the PR only contains a single commit, the action will validate that
25+
# it matches the configured pattern.
26+
validateSingleCommit: true
27+
# Related to `validateSingleCommit` you can opt-in to validate that the PR
28+
# title matches a single commit to avoid confusion.
29+
validateSingleCommitMatchesPrTitle: true

0 commit comments

Comments
 (0)