Skip to content

Commit

Permalink
build: Check PR title (#249)
Browse files Browse the repository at this point in the history
* build: check pr title

* fix: add status write permission

* build: concurrency for check pr
  • Loading branch information
ronnnnn authored Feb 16, 2025
1 parent 54e22ab commit 621e1a1
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Check PR Title 🚨

on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened

permissions:
pull-requests: read
statuses: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check_pr_title:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
build
clean
docs
feat
fix
refactor
revert
style
test
update
upgrade
requireScope: false
wip: true

0 comments on commit 621e1a1

Please sign in to comment.