Skip to content

ci_: validate pr title #2

ci_: validate pr title

ci_: validate pr title #2

Workflow file for this run

name: "Conventional Commits"
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
- labeled
- unlabeled
jobs:
lint_pr_title:
name: Validate PR title
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Keep regex in sync with ./_assets/scripts/parse_commits.sh#L25
headerPattern: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(.*\))?(\_|!): (.*)$'
headerPatternCorrespondence: type, scope, breaking, subject