Repository navigation
fix(tool): record locally executed tools in OpenCode V2 #50
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: Conventional PR Title | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize, reopened, ready_for_review] | |
| permissions: | |
| contents: read | |
| jobs: | |
| title: | |
| name: Conventional PR title | |
| if: ${{ !startsWith(github.head_ref, 'release-please--branches--') }} | |
| runs-on: ubuntu-latest | |
| env: | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| steps: | |
| - name: Validate title | |
| shell: bash | |
| run: | | |
| pattern='^(feat|fix|perf|refactor|docs|test|build|ci|chore|revert)(\([[:alnum:]./_-]+\))?!?: .+' | |
| if [[ ! "$PR_TITLE" =~ $pattern ]]; then | |
| printf '%s\n' "PR title must follow Conventional Commits, for example: feat(config): add an option" | |
| exit 1 | |
| fi |