Skip to content

build(deps): bump pnpm/action-setup from 4 to 6.0.9 #17

build(deps): bump pnpm/action-setup from 4 to 6.0.9

build(deps): bump pnpm/action-setup from 4 to 6.0.9 #17

name: Lint / Branch Name
on:
pull_request:
branches: [main]
types:
- opened
- reopened
permissions:
contents: read
concurrency:
group: lint-branch-name-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-branch-name:
runs-on: ubuntu-22.04
if: github.actor != 'dependabot[bot]'
steps:
- name: Check branch name conventions
uses: AlbertHernandez/branch-name-action@106d820c9f9275a7d0f8cf3d4ef637a46bb7b4ba # v1.0.2
with:
branch_pattern: 'feat|fix|build|ci|docs|style|refactor|perf|test|chore'
comment_for_invalid_branch_name: |
🙋‍ Oops! This branch name does not follow the naming convention.
<hr>
Please, see the following branch naming convention:
Branch naming convention | Purpose
------------------------ | -------
`feat/**` | A new feature
`fix/**` | A bug fix
`build/**` | Changes that affect the build system (npm, mavem, poetry)
`ci/**` | Changes to the CI configuration
`docs/**` | Documentation only changes
`style/**` | Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
`refactor/**` | Code changes that neither fixes a bug nor adds a feature
`perf/**` | Code changes that improve performance
`test/**` | When adding tests or correcting existing tests
`chore/**` | Other changes that don't modify source
fail_if_invalid_branch_name: 'true'
ignore_branch_pattern: 'main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Close non-compliant branch
if: ${{ failure() }}
uses: codelytv/no-pull-requests@53f1180ae5c5a7ccacdc55e03d5152ecfaeb1e00 # v1
with:
GITHUB_TOKEN: ${{ secrets.OPS_TOKEN }}
message: 🙅 Closing the PR because it does not respect naming conventions. Edit the branch name and submit a new PR.