Skip to content

Commit

Permalink
Update github.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lsewcx authored Oct 31, 2024
1 parent 51fe766 commit 0ba6ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def run_command(command:str, success_message:str, failure_message:str) -> None:
def install_dependencies_and_setup_hooks(package_manager:str) -> None:
dependencies = "commitizen cz-customizable conventional-changelog-cli cz-conventional-changelog --save-dev"
husky_init_command = f"{package_manager} exec husky init" if package_manager != "npm" else "npx husky init"
commit_msg_hook_command = f'echo "npx --no -- commitlint --edit $1" > .husky/commit-msg'
commit_msg_hook_command = f'echo "npx --no -- commitlint --edit" > .husky/commit-msg'

run_command(f"{package_manager} add {dependencies}", f"{dependencies} 安装成功", f"{dependencies} 安装失败")
if(package_manager == "pnpm"):
Expand Down

0 comments on commit 0ba6ec3

Please sign in to comment.