From 4baa12bb94d0b7408cb63fc7d111c5f20b963173 Mon Sep 17 00:00:00 2001 From: Peter Jaszkowiak Date: Thu, 27 Jul 2023 22:07:38 -0600 Subject: [PATCH] Enable triagebot no-merges check This configuration will exclude rollup PRs and subtree sync PRs from merge commit detection. On other PRs, it will post the default warning message and add the `has-merge-commits` and `S-waiting-on-author` labels when merge commits are detected. The eventual vision is to have bors refuse to merge if the `has-merge-commits` label is present. A reviewer can still force the merge by removing that label if they so wish. --- triagebot.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/triagebot.toml b/triagebot.toml index 4b051db0d73..dd96ac4ae68 100644 --- a/triagebot.toml +++ b/triagebot.toml @@ -402,6 +402,10 @@ message_on_add = """\ Issue #{number} "{title}" has been added. """ +[no-merges] +exclude_titles = ["Rollup of", "subtree update"] +labels = ["has-merge-commits", "S-waiting-on-author"] + [github-releases] format = "rustc" project-name = "Rust"