Skip to content

Commit 1765062

Browse files
authored
feat: change branch name pattern (#4)
* chore(docs): update install instructions for pipx
1 parent 468bb01 commit 1765062

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ repos:
1919
Every developer should also install `pre-commit` locally:
2020

2121
1. Install [pre-commit](http://pre-commit.com/).
22-
- Homebrew: `brew install pre-commit`
23-
- Poetry (for [server](https://github.com/clairBuoyant/server)): `poetry install`
22+
- [Homebrew](https://brew.sh/): `brew install pre-commit`
23+
- [Pipx](https://pypa.github.io/pipx/): `pipx install pre-commit`
2424
2. Run `pre-commit install` in repository.
2525

2626
Now every time a commit is made, the hooks specified in `.pre-commit-config.yaml` will execute.

githooks/branch_validate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RED="\033[0;31m"
66

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

9-
valid_branch_regex="^(bug|chore|devops|feat|fix|hotfix|release)\/[a-zA-Z0-9._-]+$"
9+
valid_branch_regex="^(bug|chore|enhancement|feature|hotfix|release|wip)\/[a-z0-9._-]+$"
1010

1111
message="Commit failed. Branch names in this project must follow this pattern: $valid_branch_regex. Please rename your branch and try again."
1212

@@ -16,4 +16,4 @@ then
1616
exit 1
1717
fi
1818

19-
exit 0
19+
exit 0

0 commit comments

Comments
 (0)