rust-lang / triagebot

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

Don't panic when there is no zulip token #1767

Open WaffleLapkin opened 8 months ago

WaffleLapkin commented 8 months ago

triagebot currently uses env::var().unwrap() inside code that handles zulip things, which is not ideal (and leads to panics spamming logs for people like me, who run triagebot themselves).

I'm not happy with this PR, but it probably solves the issue...

Ideally there would be a better system for enabling/disabling subsystems for the bot (via a per-instance-config and/or env vars), but I do not have energy to work on anything like that.