You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this utility has a lot of potential to evolve into the bot that actually does the automated cherry-pick PR creation, and one of the things we'll need to address there is what to do when the routine cherry pick fails.
At the moment, if the first cherry-pick fails, it leaves the checkout in a messy state, so all the subsequent branch creation commands fail.
I'm thinking one way of tackling this would be to:
Complain and exit early if the checkout is in a messy state, and suggesting running git stash to move the local changes aside.
If any of the cherry-picks fail do an immediate git reset --hard and move on to the next branch.
Does that approach sound reasonable?
The text was updated successfully, but these errors were encountered:
Thanks for using (and improving) this script :)
I don't yet know how to write a bot.. :( I'll need some more guidance for it.
It also sounds like Berker and/or Maciej are already working on the bot, I don't really want to step on their toes.
Sounds reasonable. In some situations where the merge failed, I've been able to do git cherry-pick --abort.
I think this utility has a lot of potential to evolve into the bot that actually does the automated cherry-pick PR creation, and one of the things we'll need to address there is what to do when the routine cherry pick fails.
At the moment, if the first cherry-pick fails, it leaves the checkout in a messy state, so all the subsequent branch creation commands fail.
I'm thinking one way of tackling this would be to:
git stash
to move the local changes aside.git reset --hard
and move on to the next branch.Does that approach sound reasonable?
The text was updated successfully, but these errors were encountered: