Skip to content

fix(checkout): price gas units before using them as a balance requirement #1299

fix(checkout): price gas units before using them as a balance requirement

fix(checkout): price gas units before using them as a balance requirement #1299

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