4 ms·
Is there any tooling you use to squash the commits and use the PR message?
by sa46 4y ago
Is there any tooling you use to squash the commits and use the PR message?
- CraftThatBlock 4y agoGithub has a "squash and merge" option during merging. You can disable the other options (merge, rebase) in the repo settings. I've worked with squash and merge almost everywhere and it's great. Keeps history clean (1 commit = 1 ticket, usually), and links back to the PR with discussions and context.
- gtirloni 4y agoUnless your tickets are tiny, the single commit will have multiple functional changes and be harder to rollback. I squash my commits into functionally independent units so they make sense and can be rolled back easily. Rebase FTW.
- KronisLV 4y agoA sibling comment mentioned GitHub, I'll also add GitLab here as well, which allows you to do the same thing in their merge requests (the equivalent of pull requests). Just checked, it doesn't seem that my self-hosted Gitea instance allows for that, so neither does Gogs (or maybe I just can't find the option in the UI).