feat: inline and no-fork execution modes #239
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |