-
Notifications
You must be signed in to change notification settings - Fork 984
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Merge script closing PRs instead of merging them randomly #13372
Comments
I have attempted to debug this issue by creating a new repository and trying to use the same script: But despite trying several PRs I could not reproduce it:
It just does not manifest. Which is why I thought this might be related to repository size. In all cases I've added at least one or more commits in the target branch to trigger a rebase on the PR branch and force push. |
I have created a fork of And attempted several PRs as well:
And yet still, no cigar. Just cannot reproduce it. |
I think at this point it's sensible to involve GitHub support in this. |
Here's the support ticket: https://support.github.com/ticket/personal/0/1629892 |
Here is another weird case, but not exactly the same, in this PR it first showed up as Except despite being marked as merged it still lost all commits and diffs: |
We got a response from support:
But their description is wrong. They say that:
But our case is clearly:
Except we get a PR becoming "closed". Which I pointed out in a response. |
It looks like this might actually be fixed:
There is hope @flexsurfer. |
I poked them for an update and they said:
So we might just get there eventually. |
interesting if it fixes only new PRs or old already broken as well |
Closing as this is not actionable on our side, moving to discussion |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
For some time now we've been seeing the
scripts/merge-pr.sh
script we use to merge PRs randomly closing them, instead of marking them as merged. For example:This appears to be some kind of timing issue, that is triggered when the PR branch is rebased and force pushed:
https://github.com/status-im/gh-rebase-fix-test/blob/150eedcafd346a46aa70fc3d13e90bcdf33e4c72/merge-pr.sh#L128-L132
As seen in the screenshot, it appears the PR is closed before the force-push takes effect. One major issue with this is that the commits and the diffs disappear from the PR, making it useless for documenting history of changes.
The text was updated successfully, but these errors were encountered: