Skip to content

Commit b5e9db1

Browse files
committed
Add T-compiler backports Zulip notifications
1 parent 9bfa31f commit b5e9db1

File tree

1 file changed

+35
-12
lines changed

1 file changed

+35
-12
lines changed

triagebot.toml

+35-12
Original file line numberDiff line numberDiff line change
@@ -606,9 +606,6 @@ message_on_remove = "Issue #{number}'s prioritization request has been removed."
606606
message_on_close = "Issue #{number} has been closed while requested for prioritization."
607607
message_on_reopen = "Issue #{number} has been reopened."
608608

609-
# FIXME: Patch triagebot to support `notify-zulip.<label>` getting mapped to an array of actions.
610-
# At the moment, the beta-nominated+T-rustdoc action fully occupies the beta-nominated slot
611-
# preventing others from adding more beta-nominated actions.
612609
[notify-zulip."beta-nominated"]
613610
required_labels = ["T-rustdoc"]
614611
zulip_stream = 266220 # #t-rustdoc
@@ -630,9 +627,6 @@ message_on_remove = "PR #{number}'s beta-nomination has been removed."
630627
message_on_close = "PR #{number} has been closed. Thanks for participating!"
631628
message_on_reopen = "PR #{number} has been reopened. Pinging @*T-rustdoc*."
632629

633-
# FIXME: Patch triagebot to support `notify-zulip.<label>` getting mapped to an array of actions.
634-
# At the moment, the beta-accepted+T-rustdoc action fully occupies the beta-accepted slot
635-
# preventing others from adding more beta-accepted actions.
636630
[notify-zulip."beta-accepted"]
637631
required_labels = ["T-rustdoc"]
638632
zulip_stream = 266220 # #t-rustdoc
@@ -643,9 +637,6 @@ message_on_remove = "PR #{number}'s beta-acceptance has been **removed**."
643637
message_on_close = "PR #{number} has been closed. Thanks for participating!"
644638
message_on_reopen = "PR #{number} has been reopened. Pinging @*T-rustdoc*."
645639

646-
# FIXME: Patch triagebot to support `notify-zulip.<label>` getting mapped to an array of actions.
647-
# At the moment, the stable-nominated+T-rustdoc action fully occupies the stable-nominated slot
648-
# preventing others from adding more stable-nominated actions.
649640
[notify-zulip."stable-nominated"]
650641
required_labels = ["T-rustdoc"]
651642
zulip_stream = 266220 # #t-rustdoc
@@ -668,9 +659,6 @@ message_on_remove = "PR #{number}'s stable-nomination has been removed."
668659
message_on_close = "PR #{number} has been closed. Thanks for participating!"
669660
message_on_reopen = "PR #{number} has been reopened. Pinging @*T-rustdoc*."
670661

671-
# FIXME: Patch triagebot to support `notify-zulip.<label>` getting mapped to an array of actions.
672-
# At the moment, the stable-accepted+T-rustdoc action fully occupies the stable-accepted slot
673-
# preventing others from adding more stable-accepted actions.
674662
[notify-zulip."stable-accepted"]
675663
required_labels = ["T-rustdoc"]
676664
zulip_stream = 266220 # #t-rustdoc
@@ -691,6 +679,41 @@ message_on_remove = "Issue #{number}'s nomination has been removed. Thanks all f
691679
message_on_close = "Issue #{number} has been closed. Thanks for participating!"
692680
message_on_reopen = "Issue #{number} has been reopened. Pinging @*T-types*."
693681

682+
[notify-zulip."beta-nominated".compiler]
683+
required_labels = ["T-compiler"]
684+
zulip_stream = 474880 # #t-compiler/backports
685+
topic = "#{number}: beta-nominated"
686+
message_on_add = [
687+
"""\
688+
@**channel** PR #{number} "{title}" has been nominated for beta backport.
689+
""",
690+
"""\
691+
/poll Approve beta backport of #{number}?
692+
approve
693+
decline
694+
don't know
695+
""",
696+
]
697+
message_on_remove = "PR #{number}'s beta-nomination has been removed."
698+
699+
[notify-zulip."stable-nominated".compiler]
700+
required_labels = ["T-compiler"]
701+
zulip_stream = 474880 # #t-compiler/backports
702+
topic = "#{number}: stable-nominated"
703+
message_on_add = [
704+
"""\
705+
@**channel** PR #{number} "{title}" has been nominated for beta backport.
706+
""",
707+
"""\
708+
/poll Approve beta backport of #{number}?
709+
approve
710+
approve (but does not justify new dot release on its own)
711+
decline
712+
don't know
713+
""",
714+
]
715+
message_on_remove = "PR #{number}'s stable-nomination has been removed."
716+
694717
[notify-zulip."A-edition-2021"]
695718
required_labels = ["C-bug"]
696719
zulip_stream = 268952 # #edition

0 commit comments

Comments
 (0)