From 8ca498810a668e945b0f1cc39b30f86ec019e612 Mon Sep 17 00:00:00 2001 From: Jieyou Xu Date: Tue, 29 Sep 2026 19:15:53 +0800 Subject: [PATCH] chore(triagebot): route rustfmt repo backport nominations to zulip To the [backport channel](https://rust-lang.zulipchat.com/#narrow/channel/621384-t-rustfmt.2Fbackports). --- triagebot.toml | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/triagebot.toml b/triagebot.toml index de28ad00a42..d156d2b70ae 100644 --- a/triagebot.toml +++ b/triagebot.toml @@ -102,6 +102,57 @@ add_labels = ["S-waiting-on-review"] # Documentation at: [shortcut] +# ------------------------------------------------------------------------------ +# Backport nominations (rustfmt repo side) +# ------------------------------------------------------------------------------ + +[notify-zulip."beta-nominated".rustfmt] +zulip_stream = 621384 # #t-rustfmt/backports +topic = "rustfmt#{number}: beta-nominated" +message_on_add = [ + """\ +@*T-rustfmt* @*T-rustfmt-contributors* PR rustfmt#{number} "{title}" has been nominated +for beta backport. +""", + """\ +/poll Approve beta backport of rustfmt#{number}? +approve +decline +don't know +""", +] +message_on_remove = "PR rustfmt#{number}'s beta-nomination has been removed." + +[notify-zulip."beta-accepted".rustfmt] +zulip_stream = 621384 # #t-rustfmt/backports +# Put it in the same thread as beta-nominated. +topic = "rustfmt#{number}: beta-nominated" +message_on_add = "PR rustfmt#{number} has been **accepted** for **beta** backport." + +[notify-zulip."stable-nominated".rustfmt] +zulip_stream = 621384 # #t-rustfmt/backports +topic = "rustfmt#{number}: stable-nominated" +message_on_add = [ + """\ +@*T-rustfmt* @*T-rustfmt-contributors* PR rustfmt#{number} "{title}" has been nominated +for stable backport. +""", + """\ +/poll Approve stable backport of rustfmt#{number}? +approve +approve (but does not justify new dot release on its own) +decline +don't know +""", +] +message_on_remove = "PR rustfmt#{number}'s stable-nomination has been removed." + +[notify-zulip."stable-accepted".rustfmt] +zulip_stream = 621384 # #t-rustfmt/backports +# Put it in the same thread as stable-nominated. +topic = "rustfmt#{number}: stable-nominated" +message_on_add = "PR rustfmt#{number} has been **accepted** for **stable** backport." + # ------------------------------------------------------------------------------ # PR assignments # ------------------------------------------------------------------------------