Skip to content

Commit

Permalink
ci(pr): checking pull request title that valid for semver
Browse files Browse the repository at this point in the history
  • Loading branch information
PunGrumpy committed Sep 27, 2024
1 parent 7a85884 commit f4da78d
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 👧 Pull Request Title

on:
pull_request_target:
types: [opened, edited, synchronize, reopened, ready_for_review]

permissions:
pull-requests: read

jobs:
pr-title:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
name: 📝 Validate Title
runs-on: ${{ matrix.os }}
steps:
- name: 🚦 Validate Title
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
requireScope: true
subjectPattern: ^(?![A-Z]).+$
scopes: |
.+
types: |
build
chore
ci
docs
feat
fix
merge
perf
refactor
revert
style
test
wip
ignoreLabels: |
autorelease: pending

0 comments on commit f4da78d

Please sign in to comment.