Skip to content

Commit 091a798

Browse files
committed
[NFC] Re-organize triagebot.toml
Add some dividing sections, as it was hard to quickly identify which section is which.
1 parent 6268d0a commit 091a798

File tree

1 file changed

+62
-19
lines changed

1 file changed

+62
-19
lines changed

triagebot.toml

Lines changed: 62 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# This file's format is documented at
22
# https://forge.rust-lang.org/triagebot/pr-assignment.html#configuration
33

4+
5+
# ------------------------------------------------------------------------------
6+
# Labels
7+
# ------------------------------------------------------------------------------
8+
49
[relabel]
510
allow-unauthenticated = [
611
"A-*",
@@ -44,6 +49,11 @@ remove_labels = ["S-waiting-on-author"]
4449
# Those labels are added when PR author requests a review from an assignee
4550
add_labels = ["S-waiting-on-review"]
4651

52+
53+
# ------------------------------------------------------------------------------
54+
# Ping groups
55+
# ------------------------------------------------------------------------------
56+
4757
[ping.windows]
4858
message = """\
4959
Hey Windows Group! This bug has been identified as a good "Windows candidate".
@@ -153,6 +163,11 @@ Hi relnotes-interest-group, this issue/PR could use some help in reviewing /
153163
adjusting release notes. Could you take a look if available? Thanks <3
154164
"""
155165

166+
167+
# ------------------------------------------------------------------------------
168+
# Autolabels
169+
# ------------------------------------------------------------------------------
170+
156171
[prioritize]
157172
label = "I-prioritize"
158173

@@ -582,6 +597,11 @@ trigger_files = [
582597
"compiler/rustc_codegen_llvm",
583598
]
584599

600+
601+
# ------------------------------------------------------------------------------
602+
# Prioritization and team nominations
603+
# ------------------------------------------------------------------------------
604+
585605
[notify-zulip."I-prioritize"]
586606
zulip_stream = 245100 # #t-compiler/prioritization/alerts
587607
topic = "#{number} {title}"
@@ -598,6 +618,21 @@ message_on_remove = "Issue #{number}'s prioritization request has been removed."
598618
message_on_close = "Issue #{number} has been closed while requested for prioritization."
599619
message_on_reopen = "Issue #{number} has been reopened."
600620

621+
[notify-zulip."I-types-nominated"]
622+
zulip_stream = 326866 # #T-types/nominated
623+
topic = "#{number}: {title}"
624+
message_on_add = """\
625+
@*T-types* issue #{number} "{title}" has been nominated for team discussion.
626+
"""
627+
message_on_remove = "Issue #{number}'s nomination has been removed. Thanks all for participating!"
628+
message_on_close = "Issue #{number} has been closed. Thanks for participating!"
629+
message_on_reopen = "Issue #{number} has been reopened. Pinging @*T-types*."
630+
631+
632+
# ------------------------------------------------------------------------------
633+
# Zulip notifications
634+
# ------------------------------------------------------------------------------
635+
601636
[notify-zulip."beta-nominated".rustdoc]
602637
required_labels = ["T-rustdoc"]
603638
zulip_stream = 266220 # #t-rustdoc
@@ -661,15 +696,6 @@ message_on_remove = "PR #{number}'s stable-acceptance has been **removed**."
661696
message_on_close = "PR #{number} has been closed. Thanks for participating!"
662697
message_on_reopen = "PR #{number} has been reopened. Pinging @*T-rustdoc*."
663698

664-
[notify-zulip."I-types-nominated"]
665-
zulip_stream = 326866 # #T-types/nominated
666-
topic = "#{number}: {title}"
667-
message_on_add = """\
668-
@*T-types* issue #{number} "{title}" has been nominated for team discussion.
669-
"""
670-
message_on_remove = "Issue #{number}'s nomination has been removed. Thanks all for participating!"
671-
message_on_close = "Issue #{number} has been closed. Thanks for participating!"
672-
message_on_reopen = "Issue #{number} has been reopened. Pinging @*T-types*."
673699

674700
[notify-zulip."beta-nominated".compiler]
675701
required_labels = ["T-compiler"]
@@ -706,6 +732,7 @@ don't know
706732
]
707733
message_on_remove = "PR #{number}'s stable-nomination has been removed."
708734

735+
709736
[notify-zulip."beta-nominated".bootstrap]
710737
required_labels = ["T-bootstrap"]
711738
zulip_stream = 507486 # #t-infra/bootstrap/backports
@@ -741,6 +768,7 @@ don't know
741768
]
742769
message_on_remove = "PR #{number}'s stable-nomination has been removed."
743770

771+
744772
[notify-zulip."A-edition-2021"]
745773
required_labels = ["C-bug"]
746774
zulip_stream = 268952 # #edition
@@ -757,17 +785,10 @@ message_on_add = """\
757785
Issue #{number} "{title}" has been added.
758786
"""
759787

760-
[no-merges]
761-
exclude_titles = ["Rollup of", "subtree update", "Subtree update"]
762-
labels = ["has-merge-commits", "S-waiting-on-author"]
763-
764-
[github-releases]
765-
format = "rustc"
766-
project-name = "Rust"
767-
changelog-path = "RELEASES.md"
768-
changelog-branch = "master"
769788

770-
[shortcut]
789+
# ------------------------------------------------------------------------------
790+
# Mentions
791+
# ------------------------------------------------------------------------------
771792

772793
[mentions."triagebot.toml"]
773794
message = "`triagebot.toml` has been modified, there may have been changes to the review queue."
@@ -1201,6 +1222,11 @@ cc = ["@m-ou-se"]
12011222
[mentions."compiler/rustc_ast_lowering/src/format.rs"]
12021223
cc = ["@m-ou-se"]
12031224

1225+
1226+
# ------------------------------------------------------------------------------
1227+
# PR assignments
1228+
# ------------------------------------------------------------------------------
1229+
12041230
[assign]
12051231
warn_non_default_branch.enable = true
12061232
contributing_url = "https://rustc-dev-guide.rust-lang.org/getting-started.html"
@@ -1442,6 +1468,23 @@ compiletest = [
14421468

14431469
[pr-tracking]
14441470

1471+
1472+
# ------------------------------------------------------------------------------
1473+
# Misc
1474+
# ------------------------------------------------------------------------------
1475+
1476+
[no-merges]
1477+
exclude_titles = ["Rollup of", "subtree update", "Subtree update"]
1478+
labels = ["has-merge-commits", "S-waiting-on-author"]
1479+
1480+
[github-releases]
1481+
format = "rustc"
1482+
project-name = "Rust"
1483+
changelog-path = "RELEASES.md"
1484+
changelog-branch = "master"
1485+
1486+
[shortcut]
1487+
14451488
# Enable issue transfers within the org
14461489
# Documentation at: https://forge.rust-lang.org/triagebot/transfer.html
14471490
[transfer]

0 commit comments

Comments
 (0)