Skip to content

Commit

Permalink
Update review.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JordyHers authored Jan 9, 2024
1 parent d764210 commit c2cc7c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
branch_name="${{ github.event.pull_request.head.ref }}"
regex="^(feature|bugfix|hotfix|chore|merge|MERGE)\/[a-zA-Z0-9\-]+$"
if [[ ! $branch_name =~ $regex && "$branch_name" != "master" && "$branch_name" != "dev" ]]; then
if [[ ! $branch_name =~ $regex && "$branch_name" != "master" && "$branch_name" != "dev" && ! "$branch_name" =~ ^dependabot/ ]]; then
echo "error: Branch name does not follow naming convention"
echo "Please follow the correct format: <category>/<description-in-kebab-case>"
echo "Example: feature/sc-3000-create-new-button-component or chore/my-feature"
Expand Down

0 comments on commit c2cc7c4

Please sign in to comment.