Nutlope / aicommits

A CLI that writes your git commit messages for you with AI

Home Page:https://www.npmjs.com/package/aicommits

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aicommits hides the output of husky

kud opened this issue · comments

Bug description

We are using https://typicode.github.io/husky/ at work to prettierify the files and eslintifier as well. Tho, when I use aicommits , husky rendering is hidden (probably any command between the beginning and the end of aicommits).

Could be great not to break the output.

aicommits version

1.11.0

Environment

System:
    OS: macOS 13.5.2
    CPU: (10) arm64 Apple M1 Pro
    Memory: 86.50 MB / 16.00 GB
    Shell: 5.9 - /opt/homebrew/bin/zsh
  Binaries:
    Node: 16.14.2 - ~/Library/Caches/fnm_multishells/10540_1695116455281/bin/node
    Yarn: 1.22.11 - ~/Projects/_kud/_theorchard/graphql-knowledge/node_modules/.bin/yarn
    npm: 10.0.0 - ~/Library/Caches/fnm_multishells/10540_1695116455281/bin/npm
    pnpm: 7.22.0 - ~/Library/Caches/fnm_multishells/10540_1695116455281/bin/pnpm
    Watchman: 2023.09.04.00 - /opt/homebrew/bin/watchman

Can you contribute a fix?

  • I’m interested in opening a pull request for this issue.

Can confirm the same. No husky output in our project as well.
Infact in our case it's completely bypassing husky's pre-commit hooks that lints and prettifies the staged files.

For example, In the snapshot below, you can see how a file violating an eslint rule is committed, bypassing husky's checks.
Screen Shot 2023-09-25 at 4 51 11 PM