shibapm / Komondor

Git Hooks for Swift projects 🐩
MIT License
552 stars 32 forks source link

Trying to get "commit-msg" working but seems like git params aren't set #52

Open eMdOS opened 2 years ago

eMdOS commented 2 years ago

I've set commitlint locally, and I've been trying to use it from Komondor.

let config = PackageConfiguration([
    "komondor": [
        "commit-msg": "npx --no -- commitlint --edit",
    ],
]).write()
#endif

Apparently, the git parameter that the commit-msg hook expects is not being passed.

I've also tried things like:

 "commit-msg": "npx --no -- commitlint --edit $1",

or

 "commit-msg": "npx --no -- commitlint --edit '$1'",

... but cannot make it work; cannot find documentation about it either.

How could I get it working? 🤔 - Thanks in advance 😬!