-
Notifications
You must be signed in to change notification settings - Fork 934
Simple usage? #775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey Rob, this seems to work for me:
Does this help in your situation? |
Yes! This is what I eventually figured out. I guess I was confused this wasn't higher up on the "getting started"; maybe thats just me though. |
Maybe... I actually searched the issues here and couldn't find something similar :) |
So my use case was that I wanted something simple to run in CI; so its a one liner that checks the last 10 commits currently, though I'll make that something more sensible i.e. the diff between |
Got it. There's an idea to make commitlint work with github-actions. |
Potentially; for me it was really just wanting the most basic functionality without having to setup extra things. Anyway, I've got it figured out, so I'll close the issue. Thanks for the help, and the quick responses. |
I'm unsure if I'm missing something here but... how do I use this in a straightforward way to lint the most recent commit?
Something like
npx @commitlint/cli HEAD~1
, assuming a relevant config file is in the same directory. The local setup doc immediately starts trying to make me install more dependencies and commit hooks, which is baffling to me.The text was updated successfully, but these errors were encountered: