chore(deps): bump the cargo-patch group across 1 directory with 7 updates #62
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 format | |
| on: | |
| pull_request: | |
| types: [opened, reopened, edited, synchronize] | |
| # The job only reads `github.event.pull_request.title` and runs a regex — | |
| # no repo, issues, or check writes are needed. Drop the token to no scopes. | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| TITLE: ${{ github.event.pull_request.title }} | |
| jobs: | |
| check: | |
| name: conventional-pr-title:required | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Conventional Commits v1.0: | |
| # verb: description | |
| # verb!: description of breaking change | |
| # verb(scope): description | |
| # verb(scope)!: description | |
| - run: | | |
| # Scope class allows `_` and `.` so titles like `chore(deps-dev):` | |
| # or `fix(ci.github):` pass. Commas keep multi-scope notation. | |
| if [[ "$TITLE" =~ ^(feat|fix|chore|build|ci|docs|style|refactor|perf|test|revert)(\([-_.a-zA-Z0-9,]+\))?\!?\: ]]; then | |
| echo pass | |
| else | |
| echo "PR title does not match Conventional Commits" | |
| exit 1 | |
| fi |