Skip to content

chore(deps): bump the cargo-patch group across 1 directory with 6 updates #60

chore(deps): bump the cargo-patch group across 1 directory with 6 updates

chore(deps): bump the cargo-patch group across 1 directory with 6 updates #60

name: PR title format
on:
pull_request:
types: [opened, reopened, edited, synchronize]
# The job only reads `github.event.pull_request.title` and runs a regex —
# no repo, issues, or check writes are needed. Drop the token to no scopes.
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
TITLE: ${{ github.event.pull_request.title }}
jobs:
check:
name: conventional-pr-title:required
runs-on: ubuntu-latest
steps:
# Conventional Commits v1.0:
# verb: description
# verb!: description of breaking change
# verb(scope): description
# verb(scope)!: description
- run: |
# Scope class allows `_` and `.` so titles like `chore(deps-dev):`
# or `fix(ci.github):` pass. Commas keep multi-scope notation.
if [[ "$TITLE" =~ ^(feat|fix|chore|build|ci|docs|style|refactor|perf|test|revert)(\([-_.a-zA-Z0-9,]+\))?\!?\: ]]; then
echo pass
else
echo "PR title does not match Conventional Commits"
exit 1
fi