Open rbtcollins opened 1 month ago
Thanks for reporting the issue so comprehensively!
When trying the same on a small private repository on GitHub, it did work as expected. I was able to push and create a PR afterwards. Maybe it mattered that I pushed first though, so I redid the operation without pushing first, but it seems GitButler manages this situation correctly as well.
Interpreting the error code, it looks like the commit at which the PR was supposed to be created was considered invalid. This makes me think that maybe the branch to create the PR from didn't exist, somehow. To validate this, I renamed the remote branch to a name that wasn't pushed yet and created a PR right away. It worked just like before.
Thus I am a little bit puzzled as to what happens here.
Looking at the logs further also seems to indicate that loading the existing PRs fails with a similar status code.
In the end, I wouldn't even know what to ask as follow-up question, unfortunately, but maybe the above interpretation attempts help someone else to figure out further debugging steps.
Possibly adding some more telemetry, or a debug mode, might help. I'd be happy to run a build that did that.
For now though, I won't have more to add - because of the separate #2513 I'm switching to stacked-git for daily use.
Version
0.12.13
Operating System
Windows
Distribution Method
msi (Windows)
Describe the issue
Clicking 'Create PR' fails. Pushing does not seem to change anything.![image](https://github.com/user-attachments/assets/4e0ffd33-aa4d-48fb-a218-259a5e2dbec7)
How to reproduce
Download gitbutler login to github and to git butler select an existing repo with two remotes: origin and upstream make a commit to the workspace, click on 'create pr'.
Expected behavior
The PR should be created
Relevant log output