Skip to content

Accept/decline T-compiler backports from Zulip #2155

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

apiraino
Copy link
Contributor

@apiraino apiraino commented Aug 13, 2025

This patch adds a new Zulip command:
@triagebot backport <channel> <action> <PR>

Example:

  • @triagebot backport stable accept 123456
  • @triagebot backport beta decline 654321

This can be used to post on GitHub a comment like this one when T-compiler accepts/decline to backport a patch that fixes a regression.

Limitations:

  • This command assumes that the PR is from rust-lang/rust, I am not aware of other git repos having this workflow. If we want, maybe in the future we can extend to other repos using our custom Zulip linkfiers
  • There is no check on the PR number (so if someone mistypes, the comment will go elsewhere 😅 )

Tested on a custom Zulip instance.

TODO:

  • update docs on the forge
  • Could be interesting a shorter variant of this command (f.e. backport accept or even accept) to be used from #t-compiler/backports (topics contain all necessary info to build the command parameters)

@apiraino apiraino changed the title Accept backports from zulip Accept/decline backports from zulip Aug 13, 2025
@apiraino apiraino changed the title Accept/decline backports from zulip Accept/decline T-compiler backports from zulip Aug 13, 2025
@apiraino apiraino force-pushed the accept-backports-from-zulip branch from a42cf9d to b265ac9 Compare August 13, 2025 10:58
@apiraino apiraino changed the title Accept/decline T-compiler backports from zulip Accept/decline T-compiler backports from Zulip Aug 13, 2025
@apiraino apiraino marked this pull request as ready for review August 13, 2025 11:17
},
content: "",
};
let zulip_link = zulip_send_req.url(zulip_client);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: for how the Message API works today, we can't pin exactly a single message so the link in the GitHub comment will be to the whole topic, which is a bit inconvenient but hopefully will be solved by Zulip. I'd rather wait on them for a correct fix rather us add hacks to make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant