Skip to content

Commit

Permalink
ci: add validation of PR title (#7)
Browse files Browse the repository at this point in the history
Signed-off-by: Mogyuchi <[email protected]>
  • Loading branch information
Mogyuchi authored Jan 17, 2024
1 parent 744bb3b commit 92cad28
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint PR

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

jobs:
validate:
name: Validate PR title
permissions:
pull-requests: read
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@e9fabac35e210fea40ca5b14c0da95a099eff26f # v5.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
perf
deps
revert
docs
style
chore
refactor
test
build
ci
disallowScopes: |
release

0 comments on commit 92cad28

Please sign in to comment.