-
-
Notifications
You must be signed in to change notification settings - Fork 75
feat: Add configurable changelog omission for custom commit types #288
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
feat: Add configurable changelog omission for custom commit types #288
Conversation
Codecov Report
@@ Coverage Diff @@
## main #288 +/- ##
==========================================
- Coverage 85.33% 85.31% -0.03%
==========================================
Files 45 45
Lines 6207 6239 +32
==========================================
+ Hits 5297 5323 +26
- Misses 910 916 +6
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@the-wondersmith - how would it work in terms of config? |
@bdarcus If you look at the additions, it's fairly simple. I've added a field to
Looking through the "flow" of things when changelogs are being generated, the least disruptive place I could see to add a check for whether or not a given commit should be omitted that wouldn't also result in cascading changes to various calling signatures / return types, I settled on That specific choice of "shim" location necessitated some way to check if a Putting it all together, I updated the [commit_types]
hotfix = { changelog_title = "Hotfixes" }
release = { changelog_title = "Releases" }
wip = { changelog_title = "Work In Progress", omit_from_changelog = true } Then generated changelogs - |
Looks good from that POV then! I'm a rust newbie and amateur programmer, so don't feel competent to comment on the code. |
Nice work @the-wondersmith ! I will do a proper review on monday. Could you fix the lints and formatting until then ? |
@oknozor Of course. I pushed fixes for the linting issues, and clippy passes locally as well. Please let me know if there's anything else I can do - eager for your review and/or thoughts otherwise 😁. EDIT: I'm 90% sure the failing tests are due to silliness in my local environment, so I'm not going to fret over them. I added support for the Either way, let me know if I can do anything else. |
Hey @the-wondersmith I think failing tests are related to #235 That said you should write at least one test to ensure commit are omitted from changelog in cog_tests/changelog.rs. |
Also you are 100% correct - tests are failing locally due to the exact situation described by #235 😅 |
@oknozor Saw that everything was in the green except for coverage of the new Reverted the addition of |
@oknozor Shameless self-bump |
@the-wondersmith there are still a few pending comments in re review |
@oknozor I may just be looking in the wrong place, but I can't seem to find any unaddressed comments (other than the ones that Codecov added to the test bodies, which I'd have thought Can you point me in the right direction? |
@the-wondersmith look at the "Pending" comments here https://github.com/cocogitto/cocogitto/pull/288/files |
@oknozor all I've got on my end is: I absolutely don't want to presume, but is there any chance you haven't actually submitted the review(s) in question? |
I did forgot to submit the review, oopsy :) |
✔️ 5a01106...4dea994 - Conventional commits check succeeded. |
@oknozor all requested changes made and pushed |
@oknozor We appear to be green across the board 😁 |
Thanks a lot @the-wondersmith ! I will release as soon as I get the docs updated. |
PR enables configurable changelog omission by commit type, as requested in #214