Skip to content

Conversation

@jieyouxu
Copy link
Member

@jieyouxu jieyouxu commented Dec 6, 2025

The "Revert" button is no longer shown (on rust-lang/rust specifically) due to branch protection rules + GitHub UI updates since a good while ago. I think it's specifically that even though you have write access to rust-lang/rust, main has branch protection rules that would prevent you from being able to directly merge a (revert) PR into main (without going through bors) and thus GitHub thinks that it shouldn't show you the "Revert" button (my hypothesis, of course).

Closes #981.

Ref:
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/reverting-a-pull-request#reverting-a-pull-request.

r? @mati865 (since you noticed the revert button isn't there :3)

Rendered

The "Revert" button is no longer shown due to branch protection rules +
GitHub UI updates since a good while ago.

Ref:
<https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/reverting-a-pull-request#reverting-a-pull-request>.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 6, 2025
@jieyouxu jieyouxu added the T-compiler Team: Compiler label Dec 6, 2025
@jieyouxu
Copy link
Member Author

jieyouxu commented Dec 6, 2025

Yeah, I think the branch protection is the reason, because I can see the "revert" button on rustfmt repo (but not rust) (I have write access to both, but there isn't bors and bors-suporting branch protection rules on rustfmt):

Screenshot 2025-12-06 153139

Copy link
Member

@mati865 mati865 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic, thanks!

@jieyouxu jieyouxu merged commit 8f76b98 into rust-lang:master Dec 6, 2025
1 check passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 6, 2025
@jieyouxu jieyouxu deleted the rollup-merge-commit branch December 6, 2025 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-compiler Team: Compiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mention the other form of rollup merge for revert

3 participants