Skip to content

Add documentation for triagebot new_draft option for autolabels #915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/triagebot/autolabels.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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.
Expand Down