-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Github sometimes closes issues that have been re-opened #130817
Comments
This has also happened a few times during a clippy subtree update which has commits that reference issues in the clippy repo but happen to have the same issue number as open issues here. #12695 is one such case |
I've raised this via GitHub's support (thus not our call with them) a while back and they were aware of the issue. But there isn't a way to prevent this (afaik) and GitHub didn't seem confident that it would be fixed anytime soon. But we can flag this in our calls again... |
One thing we could do is having a github actions/app that analyzes the commit messages of a PR and prevents patterns like People would need to force push to change the commit message. |
I think this can even happen when the commit is in a private repo, in which case the GitHub UI has no indication that the issue was actually closed due to a commit reference. |
I'm not sure we talked about this with GitHub in the context of subtrees. I can raise this with them at our next meeting. 👍 |
When a commit contains the magic words
Fixes #xxx
, if that commit gets pushed to a repo by someone with permissions to close rust-lang issues, the issue will be closed. (I don't know the exact requirements, but it's something like this.) When a PR has these magic words in the PR description, that gets added to the merge commit message, and causes the same issue. This can lead to accidental issue closure when such a commit gets merged into our repo, then the issue gets reopened, and then the commit gets pushed somewhere.I've seen this a few times over the last years. The most recent one is #102048.
@rust-lang/infra is there anything we can do here? Like disable the "auto close based on commit message" feature (but keep it for PR descriptions!)? If not, maybe this could be added to the wishlist for the next meeting you have with Github people.
The text was updated successfully, but these errors were encountered: