We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04c222d commit 324ae88Copy full SHA for 324ae88
.github/workflows/lint-pr.yml
@@ -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