Skip to content
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

Exit with nonzero status on warnings #167

Open
dmurvihill opened this issue Jan 5, 2025 · 2 comments
Open

Exit with nonzero status on warnings #167

dmurvihill opened this issue Jan 5, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@dmurvihill
Copy link

Thanks for your work on this package!

I'd like to have a CLI flag and config option to exit with a non-zero status if any warnings are emitted for invalid commit messages, for use in CI.

@qoomon qoomon self-assigned this Jan 6, 2025
@qoomon qoomon added the enhancement New feature or request label Jan 6, 2025
@qoomon
Copy link
Owner

qoomon commented Jan 6, 2025

I'm lacking a little bit of time however, every PR is welcome.

@qoomon
Copy link
Owner

qoomon commented Jan 6, 2025

In this parsing method we need to gather and throw all warnings as one.

function parseCommitSubject(commit) {

and then we need to handle exceptions everywhere we using this functions. Depending on a cli parameter we would the print the warnings or throw an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants