Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/triagebot/mentions.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ To enable mentions, add entries to the `[mentions]` table in `triagebot.toml`.

Each key in the table should either be a path in the repo or should be a string (when `type="content"`). See the dedicated section below for more details.

There are three optional values that can be specified in the table:
There are four optional values that can be specified in the table:

* `type` --- Specifies the matching type that must be satisfied, either `filename` (the default) or `content`.
* `trigger_files` --- For `type = "content"` mentions, restrict the content matching to only the specified array of file globs.
* `cc` --- A list of strings of users to ping.
They should start with `@` like `@ehuss` or `@rust-lang/clippy`.
If this is not specified, nobody will be pinged.
Expand Down Expand Up @@ -60,6 +61,14 @@ otherwise, make sure you bump the `FORMAT_VERSION` constant.
[mentions."#[rustc_attr]"]
type = "content"
cc = ["@someone"]

[mentions."miri"]
type = "content"
trigger_files = ["library"]
message = """
Any special-casing of Miri in the standard library requires review.
"""
cc = ["@rust-lang/miri"]
```

## Implementation
Expand Down