You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue Description:
I am encountering an issue with the aicommits pre-commit hook when using it alongside husky in my Git repository. The aicommits tool is designed to generate commit messages based on the staged files, but when I stage my files and attempt to commit, no generated commits appear in the commit editor.
Steps to Reproduce:
Install and set up husky in the Git repository for pre-commit hook management.
Install and configure aicommits to generate commit messages based on staged files.
Stage one or more files using git add <file>.
Attempt to make a commit using git commit.
Expected Behavior:
Upon running git commit, the aicommits pre-commit hook should generate a commit message based on the staged files, and this message should appear in the commit editor for review before the actual commit is made.
Actual Behavior:
After staging files and running git commit, the commit editor is opened, but there are no generated commit messages. I am required to write a commit message manually instead of seeing the generated commit message as expected.
Additional Information:
I have verified that aicommits is properly installed and working outside of Husky, generating commit messages as expected when using git commit directly.
I have double-checked that Husky is configured correctly in the repository and other pre-commit hooks (if any) are working as intended.
I am using husky 8.0.0 version
The issue occurs on both Unix-like
Bug description
Issue Description:
I am encountering an issue with the aicommits pre-commit hook when using it alongside husky in my Git repository. The aicommits tool is designed to generate commit messages based on the staged files, but when I stage my files and attempt to commit, no generated commits appear in the commit editor.
Steps to Reproduce:
Expected Behavior:
Upon running git commit, the aicommits pre-commit hook should generate a commit message based on the staged files, and this message should appear in the commit editor for review before the actual commit is made.
Actual Behavior:
After staging files and running git commit, the commit editor is opened, but there are no generated commit messages. I am required to write a commit message manually instead of seeing the generated commit message as expected.
Additional Information:
Husky pre-commit file
aicommits version
v1.11.0
Environment
Can you contribute a fix?
The text was updated successfully, but these errors were encountered: