Skip to content

chore: update husky scripts to latest version#253

Merged
Th3S4mur41 merged 1 commit intomainfrom
chore/husky
Dec 9, 2025
Merged

chore: update husky scripts to latest version#253
Th3S4mur41 merged 1 commit intomainfrom
chore/husky

Conversation

@Th3S4mur41
Copy link
Copy Markdown
Member

This pull request updates the Husky Git hook scripts and adjusts the Husky installation command in package.json. The main goal is to simplify the hook scripts and potentially resolve issues related to Husky's initialization.

Husky hook script updates:

  • Removed the shebang (#!/bin/sh) and Husky initialization line (. "$(dirname "$0")/_/husky.sh") from the .husky/commit-msg, .husky/pre-commit, and .husky/pre-push scripts, leaving only the commands that should run for each hook. [1] [2] [3]

Husky installation command change:

  • Changed the prepare script in package.json from husky install to just husky, possibly to align with a custom or updated Husky setup process.

Copilot AI review requested due to automatic review settings December 9, 2025 08:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request attempts to update Husky Git hook scripts to the v9.x format and changes the prepare script from husky install to husky. While the change to the prepare script is correct for Husky v9.1.7, the hook files have been incorrectly simplified by removing the shebang lines, which will cause the hooks to fail to execute.

Key changes:

  • Updated prepare script in package.json from husky install to husky (correct for v9.x)
  • Removed shebang and initialization lines from all three hook files (incorrect - shebang is still required)

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
package.json Updates prepare script to use husky command instead of husky install for v9.x compatibility
.husky/pre-push Removes shebang and initialization, leaving only the command (incorrectly removes required shebang)
.husky/pre-commit Removes shebang and initialization, leaving only the command (incorrectly removes required shebang)
.husky/commit-msg Removes shebang and initialization, leaving only the command (incorrectly removes required shebang)

@Th3S4mur41 Th3S4mur41 enabled auto-merge (squash) December 9, 2025 08:56
@Th3S4mur41 Th3S4mur41 merged commit 59d5731 into main Dec 9, 2025
12 checks passed
@Th3S4mur41 Th3S4mur41 deleted the chore/husky branch December 9, 2025 08:58
@atos-actions-release
Copy link
Copy Markdown

🎉 This PR is included in version 3.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants