Skip to content

Commit

Permalink
Update pre-commit (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Mar 3, 2024
1 parent 0c309f9 commit cd0c38f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ LC_ALL=C

local_branch="$(git rev-parse --abbrev-ref HEAD)"

valid_branch_regex="^(feature|fix|docs|style|refactor|perf|hotfix|test|chore|create)\/[a-z0-9._-]+$"
valid_branch_regex="^(dependabot|feature|fix|docs|style|refactor|perf|hotfix|test|chore|create)(\/[a-zA-Z0-9._-]+)+$"

message="There is something wrong with your branch name. Branch names in this project must adhere to this contract: $valid_branch_regex. Your commit will be rejected. You should rename your branch to a valid name and try again."

Expand All @@ -13,6 +13,4 @@ then
exit 1
fi

dotnet tool restore && dotnet csharpier --check

exit 0
dotnet tool restore && dotnet csharpier . --check

0 comments on commit cd0c38f

Please sign in to comment.