feat(notify-zulip): support notify-zulip.<label> getting mapped to multiple actions - #1853
feat(notify-zulip): support notify-zulip.<label> getting mapped to multiple actions#1853Urgau merged 1 commit intorust-lang:masterfrom ismailarilik:feat/notify-zulip/support-notify-zulip-label-getting-mapped-to-multiple-actions
notify-zulip.<label> getting mapped to multiple actions#1853Conversation
|
hey @ismailarilik thank you for this contribution. This was actually something we in T-compiler wanted (was on my TODO list...), see Zulip discussion. One thing I can spot at a first look is that our discussion was favorable to publish these notification in a substream (e.g. cc @rust-lang/rustdoc so they can express their preference either EDIT: created the Zulip channel for the T-compiler backport notifications |
|
From a rustdoc side, my personal preference would be to keep those notifications in the main stream. It's low trafic enough I don't think it's worth (us) making a new stream for it, although I can imagine this being different for a larger/higher traffic team like compiler. Also relevant context: rust-lang/rust#116957 |
|
I was thinking that the docs were in that repo but it seems that they are in the Forge. I will update it after this PR is merged. BTW, here is the related page in Forge: https://forge.rust-lang.org/triagebot/zulip-notifications.html |
|
@rustbot review |
|
How can I request a review? =) |
|
Sorry for the noise but do you know how I can test this appropriately? I setup triagebot in my local by following README and tried this implementation; it seems that it is working. But of course, I didn't try to send any Zulip notification to a team. Even if I tried this, I couldn't totally ensure that it would work on production. |
|
@ismailarilik I'll have a look at your patch later. Maintainers of this repo are listed here (not an obvious place), you can ping any of them. Please allow some time for a review.
To test the Zulip part one needs a Zulip instance. The quickest way is probably to register a new free instance for testing purposes. r? @ehuss |
|
I gave a first look and this looks good to me :) |
Another rustdoc point of view: I agree. :) |
|
@ismailarilik I am working on making it possible for the triagebot using another Zulip instance for local testing. See my work-in-progress patch, feel free to test it, if you like ( Edit: my patch has been merged |
|
I've tested this on a test Zulip instance (by manually applying this patch) and it seems to work. |
|
Thanks for the continued effort. I intend to merge it tomorrow (or Saturday). cc @Kobzol (in case you want to take a look) |
This is a requested feature in the Rust project: https://github.com/rust-lang/rust/blob/master/triagebot.toml#L492 (Notice FIXME comments there)
With this PR, multiple
notify-zuliptables are possible. For example:According to the config above, for example, if an issue with the labels
beta-nominated,T-rustdocandT-miriopened, the streams266220and266222would be notified simultaneously.It is backward-compatible, there is no need to change any current configuration. New
notify-zulipitems should have names like above.Note: This is just a draft PR. I believe my approach is right but I am not confident on the implementation so I need your feedback. Another thing is that I forgot to update the docs. =)