Skip to content

chore(deps): update pre-commit hook ambv/black to v23.11.0 (.pre-commit-config.yaml) (main) #644

chore(deps): update pre-commit hook ambv/black to v23.11.0 (.pre-commit-config.yaml) (main)

chore(deps): update pre-commit hook ambv/black to v23.11.0 (.pre-commit-config.yaml) (main) #644

name: pull-request-branch-labels
# todo: should only run if branch not named as it should
on:
pull_request:
types: [opened, ready_for_review]
jobs:
pr-labeler:
name: pull request labels
runs-on: ubuntu-latest
if: >
github.repository != 'ivankatliarchuk/.github' &&
(github.event.pull_request.user.login != 'dependabot[bot]' || github.event.pull_request.user.login != 'dependabot-preview[bot]' ||
github.event.pull_request.user.login != 'renovate[bot]' || github.event.pull_request.user.login != 'renovate-bot')
steps:
- name: identify actor & creator
run: |
echo "actor: ${{ github.actor }}"
echo "creator: ${{ github.event.pull_request.user.login }}"
- name: validate branch name
uses: AlbertHernandez/[email protected]
with:
branch_pattern: 'feature|feat|fix|bug|chore|hotfix|docs|dependencies|deps|renovate'
comment_for_invalid_branch_name: |
**Pro Tip!**
You can help us label your Pull Requests by using the following branch naming convention next time you create a pull request.
Branch naming convention | Label
------------------------ | ------
`feat/**|feature/**` | kind/feature
`fix/**` | kind/fix
`chore/**` | kind/chore
`stable/**` | kind/stable
`docs/**` | kind/docs
`dependencies/**` | kind/dependencies
`renovate/**` | kind/dependencies
<hr>
If your changes do not fall into any of these categories, don't worry.
You can just ignore this message in that case! 👀
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}