File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,17 @@ Mentions are triggered automatically when a PR is opened (or new changes are pus
10
10
## Configuration
11
11
12
12
To enable mentions, add entries to the ` [mentions] ` table in ` triagebot.toml ` .
13
- Each key in the table should be a path in the repo.
14
- Triagebot will check for modifications to any file that ** starts with** the given path.
13
+ Each key in the table should either be a path in the repo or should be a string (when ` type="content" ` ).
14
+
15
+ Triagebot will check for modifications:
16
+ - to any file that ** starts with** the given path when ` type="filename" ` (the default)
17
+ - or to any modified lines of the PR when ` type="content" `
18
+
15
19
For example, ` library/std ` would match anything under the ` library/std ` directory like ` library/std/src/process.rs ` .
16
20
17
21
There are two optional values that can be specified in the table:
18
22
23
+ * ` type ` --- Specifies the matching type that must be satisfied, either ` filename ` (the default) or ` content ` .
19
24
* ` cc ` --- A list of strings of users to ping.
20
25
They should start with ` @ ` like ` @ehuss ` or ` @rust-lang/clippy ` .
21
26
If this is not specified, nobody will be pinged.
@@ -34,6 +39,10 @@ rustdoc-json-types is a **public** (although nightly-only) API.
34
39
If possible, consider changing `src/librustdoc/json/conversions.rs`;
35
40
otherwise, make sure you bump the `FORMAT_VERSION` constant.
36
41
"""
42
+
43
+ [mentions."#[rustc_attr]"]
44
+ type = " content"
45
+ cc = [" @someone" ]
37
46
```
38
47
39
48
## Implementation
You can’t perform that action at this time.
0 commit comments