From a7ffd1d18701c3bb8a2ddb5633a472677704a7b7 Mon Sep 17 00:00:00 2001 From: Urgau Date: Wed, 9 Jul 2025 18:19:36 +0200 Subject: [PATCH] Add documentation for triagebot `new_draft` option for autolabels --- src/triagebot/autolabels.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/triagebot/autolabels.md b/src/triagebot/autolabels.md index 8b39760b4..aaa8da36b 100644 --- a/src/triagebot/autolabels.md +++ b/src/triagebot/autolabels.md @@ -57,7 +57,9 @@ exclude_labels = [ ### Triggered by new PRs -Labels can be added to any PR when it is opened. +Labels can be added to any PR in a non-draft state, either when opened or later when they switch status. +The labels are removed when they don't meet those conditions anymore. + Set the `new_pr = true` config option to enable this. For example: @@ -66,6 +68,19 @@ For example: new_pr = true ``` +### Triggered by new draft PRs + +Labels can be added to any PR in a draft state, either when opened or later when they switch status. +The labels are removed when they don't meet those conditions anymore. + +Set the `new_draft = true` config option to enable this. +For example: + +```toml +[autolabel."S-waiting-on-author"] +new_draft = true +``` + ### Triggered by new issues Labels can be added to any issue when it is opened.