-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Manual-merge check will close and mark merged PRs that are reset to master #9551
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
Comments
I guess if we just change these two lines to be Closed instead: Lines 156 to 158 in b983ff4
|
Lines 142 to 146 in b983ff4
and these too. |
But is it correct to close the PR? It can't be merged anymore, but the PR itself could receive further commits that change that. |
It should be marked as merged but not closed if it's correct. But that's not the issue. In fact the detection if it has been merged is not right I think. |
It's actually quite difficult - by the time ManualMerge is called we've lost the previous SHA. In Pushtobaserepo we have both and can do the check but there's no state we can choose which says don't mark as merged |
So maybe we should disable that currently to avoid making confuse. |
Fixed by #12543 |
Gitea Version: 1.11.0+dev-497-gc0f879546 c0f8795
If a PR's branch is reset to the content of the base repo's master, the PR will be closed and marked as merged by the manual-merge detection routine. This at least seems to be what's happened to https://gitea.com/gitea/go-sdk/pulls/203 (which incidentally was created from a
master
branch).The text was updated successfully, but these errors were encountered: