-
Notifications
You must be signed in to change notification settings - Fork 46
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
retarget-pr and codeowners #1057
Comments
I've just activated Discussions as well 😅
Actually! this (and also the merge itself) can be done in a single command:
while on
Wow this is a valid problem indeed, and no there is no way to do that with the current CLI... other than as you said, first running Still, it'd definitely make sense (and should be easy) to add something like:
Please let me know if you have any preferences/suggestion for how the CLI could look like 🤔 |
ah. for the project I'm developing on the most, the base branch is a protected branch and we use a merge queue to merge things onto the branch for us. so
maybe |
Ok! work in progress 🛠️ I'll probably call it |
Almost there, soon to be released 📦 |
woo, thanks! I'll give it a whirl soon |
Hmmm could you show your |
Sorry for late response 🙄
Yes indeed...
So back to the original question... Anyway, for the future, just run |
no worries! less than a week turnaround is fine!
I think what happened is I habitually ran my command to prune merged branches. I guess I should stop using that if I'm gonna use machete |
Hmmm if it comes to branch delete automation, there's:
Albeit I'll probably deprecate |
Also also, there's one slight downside to deleting local branches (right after merging them) when using git-machete, as explained in FAQ -> Ctrl+F |
continuing at #1088 |
Overview
(is there a place to ask questions about git-machete? I'm mostly filing this issue as a general question because there's no community tab for this project that I could find)
what is the intended workflow for a stacked PR?
I had this setup and 1 got merged on github. so then I ran
perhaps a little wordy, but ok. now I have
now what? I want to
git machete github retarget-pr
andgit push --force-with-lease
. but no matter what order I do this in, I end up in troubleif I retarget first, PR 2 now includes changes from
branch1
. any codeowners on files touched bybranch1
get added as reviewers to PR 2if I force-push first, PR 2 now includes a bunch of changes from
main
. this pulls in ~every codeowner as a reviewerQuestion
is there a less wordy way of updating-main-and-sliding-out-branch1-and-retargeting-and-force-pushing? totally ok if the answer is no; I was manually doing all that and going to my browser to retarget anyway
Suggestion
I believe
ghstack
and https://github.com/aviator-co/av mark the PR as draft, push, retarget, then mark the PR as ready for review as a single operation. draft PRs don't get codeowners automatically added as reviewersgit machete
versionI'm running off my PR branch but it's approximately 3.18.3
The text was updated successfully, but these errors were encountered: