rust-lang / triagebot

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

validate_config should not run on closed PRs #1802

Closed ehuss closed 2 months ago

ehuss commented 2 months ago

The validate_config handler seems to trigger on events hitting old, closed PRs. It loads the triagebot.toml from the PR itself, which might be very old, and fail. https://github.com/rust-lang/rust/pull/73206#issuecomment-2089379975 is an example.

I think at a minimum it probably should not run on closed PRs. I'm not sure if it should ignore other events, but that seems like a start.