Skip to content

feat: inline and no-fork execution modes #243

feat: inline and no-fork execution modes

feat: inline and no-fork execution modes #243

Workflow file for this run

name: Validate PR
on:
pull_request:
branches: [master]
jobs:
validate-pr:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Validate PR title
run: |
PR_TITLE=$(printf "%s" "${{ github.event.pull_request.title }}")
echo "PR title: $PR_TITLE"
if [[ ! "$PR_TITLE" =~ ^(feat|fix|chore|docs|refactor|style|test|tests|perf|build)(\(.+\))?:\ .+ ]]; then
echo "::error::Invalid PR title: $PR_TITLE"
echo "::error::PR title must follow Conventional Commits, e.g., 'feat(api): add user login'"
exit 1
fi