chore(deps): bump soroban-sdk from 21.7.7 to 27.0.6 in /contracts/escrow #256
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 Lint | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize, reopened] | |
| jobs: | |
| lint-pr-title: | |
| name: Lint PR Title | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Validate PR title | |
| run: | | |
| TITLE="${{ github.event.pull_request.title }}" | |
| # PR title must follow conventional commits format | |
| # Format: <type>(<scope>): <description> | |
| # Types: feat, fix, docs, style, refactor, test, chore, ci, build, perf, revert | |
| # Regex pattern for conventional commits | |
| PATTERN="^(feat|fix|docs|style|refactor|test|chore|ci|build|perf|revert)(\(.+\))?: .{1,72}$" | |
| if [[ ! "$TITLE" =~ $PATTERN ]]; then | |
| echo "❌ PR title does not follow conventional commits format" | |
| echo "" | |
| echo "Expected format: <type>(<scope>): <description>" | |
| echo "Example: feat(auth): add OAuth2 login support" | |
| echo "" | |
| echo "Allowed types:" | |
| echo " - feat: A new feature" | |
| echo " - fix: A bug fix" | |
| echo " - docs: Documentation only changes" | |
| echo " - style: Code style changes (formatting, etc.)" | |
| echo " - refactor: Code refactoring" | |
| echo " - test: Adding or updating tests" | |
| echo " - chore: Maintenance tasks" | |
| echo " - ci: CI/CD changes" | |
| echo " - build: Build system changes" | |
| echo " - perf: Performance improvements" | |
| echo " - revert: Revert a previous commit" | |
| echo "" | |
| echo "Your title: $TITLE" | |
| echo "" | |
| echo "Please update your PR title to follow the convention." | |
| exit 1 | |
| fi | |
| echo "✅ PR title follows conventional commits format" |