about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-07-29 18:55:19 -0400
committerGitHub <noreply@github.com>2025-07-29 18:55:19 -0400
commit53347802d241b73a35bb3e7848a6793ad8a08f52 (patch)
tree3db44179ae7088de3349fbcfb81558337388af0f
parent48dfddd39e329bd72fa566a0f1e992c76b263386 (diff)
parentc5b4606d2a2070f1e7d79622d6be83138b54de31 (diff)
downloadrust-53347802d241b73a35bb3e7848a6793ad8a08f52.tar.gz
rust-53347802d241b73a35bb3e7848a6793ad8a08f52.zip
Rollup merge of #144583 - apiraino:enable-t-compiler-backport-nomination, r=jieyouxu,Urgau
Enable T-compiler backport nomination

This patches the triagebot.toml so that it will trigger a backport label on pull requests fixing regressions. Applying a backport label will trigger creating a Zulip thread. For now the configuration only for `T-compiler` labeled regressions.

Comments in the code explain how it works. Documentation [on the forge](https://forge.rust-lang.org/triagebot/backport.html).

```
[backport.foo]

# The pull request MUST have one of these labels
required_pr_labels = ["T-compiler"]

# The regression MUST have this label
required_issue_label = "regression-from-stable-to-beta"

# if the above conditions matches, the PR will receive these labels
add_labels = ["beta-nominated"]
```

Anything to think about before merging this?

thanks for a review
-rw-r--r--triagebot.toml15
1 files changed, 15 insertions, 0 deletions
diff --git a/triagebot.toml b/triagebot.toml
index 894f56df741..e1b4983adf7 100644
--- a/triagebot.toml
+++ b/triagebot.toml
@@ -50,6 +50,21 @@ remove_labels = ["S-waiting-on-author"]
 # Those labels are added when PR author requests a review from an assignee
 add_labels = ["S-waiting-on-review"]
 
+# [backport.*] sections autonominate pull requests for a backport
+# see: https://forge.rust-lang.org/triagebot/backport.html
+
+[backport.t-compiler-beta-backport]
+# The pull request MUST have one of these labels
+required-pr-labels = ["T-compiler"]
+# The regression MUST have this label
+required-issue-label = "regression-from-stable-to-beta"
+# if the above conditions matches, the PR will receive these labels
+add-labels = ["beta-nominated"]
+
+[backport.t-compiler-stable-backport]
+required-pr-labels = ["T-compiler"]
+required-issue-label = "regression-from-stable-to-stable"
+add-labels = ["stable-nominated"]
 
 # ------------------------------------------------------------------------------
 # Ping groups