We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3efdf93 commit 774e343Copy full SHA for 774e343
.github/workflows/lint-pr.yml
@@ -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