chore(deps): bump fast-uri from 3.1.2 to 3.1.5 in /trailer #168
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: PR Title | |
| on: | |
| pull_request_target: | |
| types: | |
| - opened | |
| - edited | |
| - reopened | |
| - synchronize | |
| permissions: | |
| pull-requests: read | |
| jobs: | |
| conventional-pr-title: | |
| if: ${{ github.event.pull_request.base.ref == 'main' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Validate conventional PR title | |
| env: | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| run: | | |
| pattern='^(feat|fix|docs|chore|refactor|test|perf|build|ci|revert)(\([[:alnum:]_.-]+\))?!?: .+' | |
| if [[ "$PR_TITLE" =~ $pattern ]]; then | |
| echo "PR title is valid: $PR_TITLE" | |
| exit 0 | |
| fi | |
| echo "PR title must use Conventional Commits so squash-merge commits on main stay clean." | |
| echo "Allowed prefixes: feat, fix, docs, chore, refactor, test, perf, build, ci, revert" | |
| echo "Examples:" | |
| echo " feat: add desktop profile writer" | |
| echo " fix(profile): preserve native image paths" | |
| exit 1 |