diff --git a/src/triagebot/autolabels.md b/src/triagebot/autolabels.md index 8b39760b..aaa8da36 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.