Repository navigation
fix(checkout): price gas units before using them as a balance requirement #1299
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: Title Validation | |
| on: | |
| pull_request: | |
| branches: | |
| - '**' | |
| types: | |
| - opened | |
| - edited | |
| permissions: {} | |
| concurrency: | |
| group: title-validation-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| title-validation: | |
| name: Validate PR title | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: read # read PR title for semantic validation | |
| steps: | |
| - name: Validate PR title | |
| env: | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| shell: bash | |
| run: | | |
| PATTERN='^(feat|fix|refactor|style|test|docs|build|ops|chore)\([^)]+\)!?: .+' | |
| if [[ ! "$PR_TITLE" =~ $PATTERN ]]; then | |
| echo "::error::PR title must follow conventional commits format with a required scope." | |
| echo "::error::Valid types: feat, fix, refactor, style, test, docs, build, ops, chore" | |
| echo "::error::Expected: type(scope): description (e.g. feat(passport): add logout support)" | |
| echo "::error::Got: $PR_TITLE" | |
| exit 1 | |
| fi |