Skip to content

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
@apiraino apiraino force-pushed the accept-backports-from-zulip branch from b265ac9 to 80d4110 Compare August 19, 2025 15:12
@apiraino
Copy link
Contributor Author

apiraino commented Sep 6, 2025

I guess this patch went under the radar because I didn't request a review

r? triagebot

Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Sounds pretty useful!

View changes since this review

@apiraino apiraino force-pushed the accept-backports-from-zulip branch 4 times, most recently from 05aa91f to 6d99fff Compare September 19, 2025 19:05
@apiraino apiraino force-pushed the accept-backports-from-zulip branch 4 times, most recently from f32c8db to f373c3c Compare September 19, 2025 19:23
@apiraino apiraino force-pushed the accept-backports-from-zulip branch 5 times, most recently from 0c9f7c7 to 52295ac Compare October 22, 2025 12:38
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 when T-compiler accepts/decline to backport a patch that fixes a regression.

Limitations:
- This command is only available in the `rust-lang/rust` repository
- There is no check on the PR number (in case of mistypes, the comment will go elsewhere)
@apiraino apiraino force-pushed the accept-backports-from-zulip branch from 52295ac to 93156bd Compare October 22, 2025 15:43
@apiraino
Copy link
Contributor Author

r? @Kobzol I think it's ready for another round of review (when you have time)

@apiraino apiraino requested a review from Kobzol October 22, 2025 15:46
@rust-lang rust-lang deleted a comment from rustbot Oct 22, 2025
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.

2 participants