Skip to content

Commit ad1c872

Browse files
authored
fix: Avoid non semantic commontes can be merged. (#1969)
* fix: Avoid non semantic commontes can be merged. * fix: Avoid non semantic commontes can be merged. * fix: Avoid non semantic commontes can be merged.
1 parent cba98fd commit ad1c872

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/semantic-check.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Semantic Check"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
permissions:
11+
contents: read
12+
pull-requests: read
13+
14+
jobs:
15+
main:
16+
name: Semantic Commit Message Check
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- uses: amannn/action-semantic-pull-request@v4
22+
name: Check PR for Semantic Commit Message
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
requireScope: false
27+
validateSingleCommit: true
28+
ignoreLabels: release merge

0 commit comments

Comments
 (0)