rust-lang / triagebot

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

Allow a single notify-zulip notification to send multiple Zulip messages #1791

Closed fmease closed 2 months ago

fmease commented 2 months ago

This would unblock rust-lang/rust#116957:

Hard Requirements:

We would like to

  1. ping the rustdoc team (via @*T-rustdoc*),
  2. link to the nominated PR (via the short link #NNN),
  3. create a Zulip poll.

Problems:

Solution:

Send two separate Zulip messages. This requires modifications to triagebot.


This PR enables users to specify a sequence of strings for the fields notify-zulip.⟨label⟩.message_on_⟨add|remove|close|reopen⟩ in order to make triagebot post a sequence of Zulip messages. For backward compatibility, you can still specify a single string. I haven't renamed any of the fields (like message_on_$ to messages_on_$) to avoid churn. A bare string gets treated as a sequence of length 1 containing that very string.

In TypeScript syntax, I've relaxed the type of the optional (!) fields message_on_$ from string | null to string | string[] | null.


r? @Mark-Simulacrum or infra