blog icon indicating copy to clipboard operation
blog copied to clipboard

blog/code-review-stacked-prs/

Open utterances-bot opened this issue 4 years ago • 4 comments

Stacked Pull Requests | Divyanshu Maithani

Effective code review on merging large changes with stacked PRs

https://divyanshu013.dev/blog/code-review-stacked-prs/

utterances-bot avatar Dec 07 '21 08:12 utterances-bot

liked this approach, will follow it now onwards! 👌🏻

thanks for writing 🙌🏻

gupta-ji6 avatar Dec 07 '21 08:12 gupta-ji6

Gem of a post man, wish could have found it sooner!

However, in hindsight of working with big features we oftentimes have to update our PRs with requested changes, which can be needed on its subsequent PRs as well. Does this mean we'd have to rebase subsequent branches with every new update to former PRs? :thinking:

heytulsiprasad avatar Feb 02 '22 10:02 heytulsiprasad

@heytulsiprasad generally the requested changes don't (or shouldn't) require changing UI functionality. Mostly they would be for code style, readability, etc. In that case I would push such changes on the same PR (without rebasing this change onto subsequent stacked PRs). For functional changes you could create a new stacked PR on top of all PRs.

However, say you need functional changes to be reflected on all stacked PRs then it would need a rebase on all subsequent branches unfortunately.

divyanshu013 avatar Mar 15 '22 02:03 divyanshu013

Thank you @divyanshu013, I've always neglected to use stacked PRs for such reason, but I'll try with giving review fixes in yet another PR. However, this has more upsides than down so definitely worth it.

heytulsiprasad avatar Mar 15 '22 12:03 heytulsiprasad