Skip to content

Commit

Permalink
ci: add semantic pr check action (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjuan authored Oct 19, 2023
1 parent e129918 commit 0fb394d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/sementic-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Semantic PR

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
docs
feat
fix
test
chore
ci
requireScope: false
subjectPattern: ^[a-z].+[^\.]$
subjectPatternError: |
The "subject" must start with a lower-case letter and must not
end with a full-stop.

0 comments on commit 0fb394d

Please sign in to comment.