Skip to content

Commit a7ffd1d

Browse files
committed
Add documentation for triagebot new_draft option for autolabels
1 parent 06c5dac commit a7ffd1d

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/triagebot/autolabels.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ exclude_labels = [
5757

5858
### Triggered by new PRs
5959

60-
Labels can be added to any PR when it is opened.
60+
Labels can be added to any PR in a non-draft state, either when opened or later when they switch status.
61+
The labels are removed when they don't meet those conditions anymore.
62+
6163
Set the `new_pr = true` config option to enable this.
6264
For example:
6365

@@ -66,6 +68,19 @@ For example:
6668
new_pr = true
6769
```
6870

71+
### Triggered by new draft PRs
72+
73+
Labels can be added to any PR in a draft state, either when opened or later when they switch status.
74+
The labels are removed when they don't meet those conditions anymore.
75+
76+
Set the `new_draft = true` config option to enable this.
77+
For example:
78+
79+
```toml
80+
[autolabel."S-waiting-on-author"]
81+
new_draft = true
82+
```
83+
6984
### Triggered by new issues
7085

7186
Labels can be added to any issue when it is opened.

0 commit comments

Comments
 (0)