rust-lang / triagebot

Automation/tooling for Rust spaces
https://triage.rust-lang.org
Apache License 2.0
170 stars 75 forks source link

Support `new_issue` in autolabel config #1708

Closed Nilstrieb closed 1 year ago

Nilstrieb commented 1 year ago

Just like new_pr, it adds a label to every new issue that is opened.

See https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/make.20untriaged.20issues.20explicit for the motivation.

I've tested it on https://github.com/Nilstrieb/some-cursed-repo, it seems to behave correctly for what I tested. I tested

[autolabel."wontfix"]
trigger_labels = [
  "bug"
]

[autolabel."invalid"]
new_issue = true

[autolabel."documentation"]
new_pr = true

[autolabel."help wanted"]
new_pr = true
new_issue = true
exclude_labels = ["duplicate"]

documentation: https://github.com/rust-lang/rust-forge/pull/690