Nutlope / aicommits

A CLI that writes your git commit messages for you with AI
https://www.npmjs.com/package/aicommits
MIT License
7.53k stars 360 forks source link

aicommits hides the output of husky #250

Open kud opened 9 months ago

kud commented 9 months ago

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?

Keshavdulal commented 9 months ago

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