mirror of
https://github.com/conventional-commits/conventionalcommits.org.git
synced 2026-03-22 12:44:37 -05:00
Should fix for the new feature in current version use fix or ... ?
#76
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mineschan on GitHub (Aug 29, 2019).
Hi guys, me and our team are trying to adopt this convention into our projects. And I come to this confusion and hope someone can give me some advises.
During an on-going sprint, new feature created and push to our repo with
feat, which totally make sense and it will be included when we use tool to generate CHANGELOG. But then QA found a bug and ask developer the fix it right away.So the develop would fix it and push to repo with
fix, what bothering me is that, it would also be included when we generate the CHANGELOG afterwards, which make no sense.What should we use for this kind of bug fixing? Appreciated for any suggestions.
@damianopetrungaro commented on GitHub (Sep 5, 2019):
I think the right way is to rebase and squash the fix into the feature so that the PR has just 1 commit with the working feature.
If the
feathas already been merged into the master, then you have no option rather than push afix:DLet me know if this makes send and reply to your doubt 😄
@wesleytodd commented on GitHub (Sep 30, 2020):
Technically you can still rebase, fix, and force push. It depends on your team and how comfortable they all are with rebasing on top of a changed remote branch. I personally do this quite often, but it does require any teammates to know what to do, so it is probably best avoided by other git hygiene practices (like qa'ing on a feature or release branch).
@damianopetrungaro commented on GitHub (Sep 30, 2020):
@wesleytodd force pushing sounds like "yolo, all the other ppl will need to rebase before merging their PR", I'd not love it tho 😂
Also IMHO if has been written in the main (aka master) then I'd love to keep it like that since it show a clear historical reason about when a bug was introduced/deployed/reverted/fixed (or similar).
@mineschan I'm gonna close this one, if you have any other question regarding this, feel free to reopen it! :D
@wesleytodd commented on GitHub (Sep 30, 2020):
Yep, just depends on the project and team. I rebase basically every PR (if I am the author or merger) anyway, so doesn't matter much to me. Still, I agree usually you would want to avoid it, and there is no reason not to push the following
fixcommit.Agreed closing is the best for this since it is pretty well sorted out and isn't really a change to the spec.