Skip to content

sandbox: clean grandchild #41

sandbox: clean grandchild

sandbox: clean grandchild #41

name: conventional-pr
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
jobs:
title:
runs-on: ubuntu-latest
steps:
- name: Validate pull request title
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
regex='^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([^)]+\))?!?: .+$'
if [[ ! "$TITLE" =~ $regex ]]; then
echo "PR title must follow Conventional Commits, for example: feat: add queue preview"
echo "Received: $TITLE"
exit 1
fi