Skip to content

Commit 4d79542

Browse files
authored
Merge pull request #872 from Urgau/triagebot-assign-custom-msgs
Document triagebot `[assign.custom_welcome_messages]`
2 parents ff0003c + 7b5ce59 commit 4d79542

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/triagebot/pr-assignment.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,18 @@ title = "[beta" # title contains "[beta" in it
125125
branch = "beta"
126126
```
127127

128+
#### Custom welcome messages
129+
130+
Some repositories may want to use custom welcome messages instead of the preconfigured ones. It is possible to customize the welcome message shown when an "auto reviewer" is found by triagebot and the one shown when no reviewer is found. If provided, the `contributing_url` will still be used.
131+
132+
```toml
133+
[assign.custom_welcome_messages]
134+
welcome-message = "Welcome message, assigning {assignee}!"
135+
welcome-message-no-reviewer = "Welcome message for when no auto-reviewer could be selected!"
136+
```
137+
138+
If `[assign.custom_welcome_messages]` is present, both custom messages must be provided.
139+
128140
## Implementation
129141

130142
See [`parser/src/command/assign.rs`](https://github.com/rust-lang/triagebot/blob/HEAD/parser/src/command/assign.rs) and [`src/handlers/assign.rs`](https://github.com/rust-lang/triagebot/blob/HEAD/src/handlers/assign.rs).

0 commit comments

Comments
 (0)