Skip to content

Commit 774e343

Browse files
committed
ci: add semantic pr checker
1 parent 3efdf93 commit 774e343

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/lint-pr.yml

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

0 commit comments

Comments
 (0)