Skip to content

Commit bb6e38f

Browse files
authored
Merge pull request #1032 from ada4a/document-zulip-recipients
Add docs for `{recipients}` substitution in `[notify-zulip]`
2 parents 24a3807 + 72de236 commit bb6e38f

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

src/triagebot/zulip-notifications.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ For example, the `rust-lang/rust` repository is configured to automatically post
1515
1616
## Configuration
1717

18-
This feature is enabled on a repository by having a `[notify-zulip]` table in `triagebot.toml`:
18+
This feature is enabled on a repository by having a `[notify-zulip]` table in `triagebot.toml`.
19+
20+
Some of the messages support substitutions:
21+
- `{number}` is replaced with the issue/PR number.
22+
- `{title}` is replaced with the issue/PR title.
23+
- `{recipients}` is replaced with a list of mentions of the people involved in the
24+
issue/PR: the author and the assignees.
1925

2026
```toml
2127
# Triggers a Zulip notification based on the given label name.
@@ -25,8 +31,7 @@ This feature is enabled on a repository by having a `[notify-zulip]` table in `t
2531
zulip_stream = 245100 # #t-compiler/prioritization/alerts
2632

2733
# The Zulip topic to post to.
28-
# {number} is replaced with the issue/PR number.
29-
# {title} is replaced with the issue/PR title.
34+
# Supports {number} and {title} substitution.
3035
topic = "#{number} {title}"
3136

3237
# Optional message to be posted on GitHub when opening the Zulip topic.
@@ -35,19 +40,19 @@ topic = "#{number} {title}"
3540
github_comment = "[Zulip topic]({zulip_topic_url}) was opened to discuss this issue."
3641

3742
# The message to post when the label is added.
38-
# Supports {number} and {title} substitution.
43+
# Supports {number}, {title}, and {recipients} substitution.
3944
message_on_add = "Issue #{number} \"{title}\" has been added."
4045

4146
# The message to post when the label is removed.
42-
# Supports {number} and {title} substitution.
47+
# Supports {number}, {title}, and {recipients} substitution.
4348
message_on_remove = "Issue #{number}'s nomination has been removed. Thanks all for participating!"
4449

4550
# The message to post when the issue/PR is closed and it has the label.
46-
# Supports {number} and {title} substitution.
51+
# Supports {number}, {title}, and {recipients} substitution.
4752
message_on_close = "Issue #{number} has been closed. Thanks for participating!"
4853

4954
# The message to post when the issue/PR is reopened and it has the label.
50-
# Supports {number} and {title} substitution.
55+
# Supports {number}, {title}, and {recipients} substitution.
5156
message_on_reopen = "Issue #{number} has been reopened. Pinging @*T-types*."
5257

5358
# The Zulip notification will not be posted unless the issue/PR has all of these labels.

0 commit comments

Comments
 (0)