Slackbot
04/13/2023, 8:56 PMelliott
04/13/2023, 8:57 PMfeature-a
and feature-b
:
* 0379b46e8 (HEAD -> feature-b) Work for feature B
* bd1a7fa86 (feature-a) Work for feature A
* 3a7cb2819 (master) Base foo
Right now, you’d make two PRs:
• Merging feature-a
into master
• Merging feature-b
into feature-a
elliott
04/13/2023, 8:58 PMbase/xxx
branch for each PR:
* 0379b46e8 (HEAD -> feature-b) Work for feature B
* bd1a7fa86 (feature-a, base/feature-b) Work for feature A
* 3a7cb2819 (master, base/feature-a) Base foo
And the two PRs would be:
• Merging feature-a
into base/feature-a
• Merging feature-b
into base/feature-b
elliott
04/13/2023, 9:00 PMfeature-a
is landed onto master, the PR for feature-b
remains intact and untouched - the UI on github still only shows that the PR has one commit
* fdda0084e (HEAD -> master) Work for feature A
| * 0379b46e8 (feature-b) Work for feature B
| * bd1a7fa86 (base/feature-b) Work for feature A
|/
* 3a7cb2819 Base foo
elliott
04/13/2023, 9:02 PMfeature-a
) with a frontend eng working on a stack of frontend PRs (aka feature-b
) off the current tip of the backend feature stack. Right now, if feature-a
is updated and force pushed, feature-b
ends up in this wonky state containing all of the commits from feature-a
elliott
04/13/2023, 9:04 PMbase/xxx
thing - until i found graphite 🙂 both flows have their pros and cons, and the base/xxx
approach is admittedly really difficult to retrofit to work with Github’s merge-centric world. But I would be beyond intrigued to play around with a mode of the graphite CLI that did manage its own explicit base branchesAlex Grinman
04/13/2023, 9:12 PMelliott
04/19/2023, 12:45 AMfeature-a
on the bottom of a stack falsely causes feature-b
to temporarily display that it has changes from earlier version of feature-a
. This is fine as long as you restack and push the rest of your stack, but if you use github CODEOWNERS
, all code owners of feature-a
will be incorrectly added to the review of feature-b
and must be removed manually sad parrot
Any thoughts on this approach?Aryaman
04/19/2023, 12:03 PMJacob Gold
04/20/2023, 1:50 AMelliott
04/20/2023, 4:02 AMJacob Gold
04/20/2023, 1:18 PMelliott
04/20/2023, 4:47 PMfeature-a
, a graphite job with automagically rebase feature-b
in the background and push?elliott
04/20/2023, 4:51 PMJacob Gold
04/20/2023, 4:54 PMelliott
12/05/2023, 6:53 AMJacob Gold
12/05/2023, 7:02 AMelliott
12/05/2023, 7:06 AM