-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Enhancement: (optionally) print commit messages and how Knope interprets them #534
Comments
This used to exist as an undocumented feature for my own debugging purposes 😅. You’re right that we should probably add a For now, I think you can get an ugly version by setting the env var |
I've got a draft version of this going, you can check out a sample output here. I'd love to know what you think and if I can clarify that format at all 😁 |
Nice! Here are my suggestions:
Otherwise it seems perfectly clear! |
Done! The formatting is pretty ugly, but I think it gets the job done and hopefully people won't have to stare at it for very long 😅. If you encounter any more pieces of info you wish it'd spit out, let me know and I'll happily start instrumenting more places. |
Thank you! The formatting is fine, I think. I'm now realizing, though, that the key piece of information I'm missing when I encounter "weird" situations is: why is a particular commit included in the set? I'm currently looking at a situation where Knope caused 4 major releases in a row (when none was intended), and it appears that for some reason Knope is including commits going back through the last many releases. So the most useful thing would be a commit-traversal graph (similar to what The four-major-releases sequence looks like this, using
When I use |
This is something I've noticed
semantic-release
does, which I think would be helpful for understanding any surprising behavior (e.g. an unexpected version bump).The idea is that
knope
would print the first line of each commit message it considers, then whether the message implies a version bump of some sort.This could either be the default behavior or behind a command-line flag.
The text was updated successfully, but these errors were encountered: