gh pr update-branch --rebase: Getting GraphQL: rebase not prepared (updatePullRequestBranch) #189028
Replies: 4 comments 2 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Btw, if I try to do the same from the frontend I see: |
Beta Was this translation helpful? Give feedback.
-
|
I have been advised by GitHub support that this is intended:
I wasn't able to get an explanation as to why. Personally, this is a bizarre change -- not allowing a PR to be updated by rebasing it is completely unrelated to whether rebases are allowed as a merge strategy. Moreover, the UX for this change is confusing. I haven't seen any announcement of the change and the error messages shown are unhelpful. The CLI, as you have reported, just shows an ambiguous "computer says no" message ( GitHub support implied that this might be related to the issues being reported in #188567. |
Beta Was this translation helpful? Give feedback.
-
|
The error GraphQL: rebase not prepared (updatePullRequestBranch) usually occurs when GitHub hasn’t finished preparing the pull request branch for a rebase operation. In automated workflows this can happen due to timing issues, background processing delays, or temporary API state inconsistencies. Even if the PR is technically rebaseable, the backend may not yet have prepared the rebase operation, which causes the CLI command to fail. Since this happens intermittently, it is likely a race condition or backend delay rather than a permanent issue with the PR itself. A common workaround is to retry the command after a short delay in the automation script. If the problem has increased recently, it might indicate a recent change or performance issue on GitHub’s backend affecting the updatePullRequestBranch GraphQL mutation. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
I'm trying to rebase a PR in an automated process, and
gh pr update-branche <branch> --repo <owner/repo> --rebasefails withGraphQL: rebase not prepared (updatePullRequestBranch)quite often.I can not find that string anywhere online interestingly enough. The frequency of the error seems to have risen in the last 2 weeks.
Beta Was this translation helpful? Give feedback.
All reactions