Skip to content

Commit 7088aff

Browse files
authored
Merge pull request #791 from Urgau/warn_non_default-exceptions
Add documentation for triagebot default branch warning exceptions
2 parents 6dd73e2 + 534e21d commit 7088aff

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/triagebot/pr-assignment.md

+13
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,19 @@ contributing_url = "https://rustc-dev-guide.rust-lang.org/contributing.html"
107107

108108
Additionally, triagebot will post a comment with a warning if the PR modifies any submodules.
109109

110+
#### Exceptions to default branch warning
111+
112+
Some PRs may have a different default branch than the rest of the PRs, in these cases it is possible to add exceptions based on the PR title, which will therefore warn if the PR is targeting a different branch than specified.
113+
114+
```toml
115+
[assign]
116+
warn_non_default_branch.enable = true
117+
118+
[[assign.warn_non_default_branch.exceptions]]
119+
title = "[beta" # title contains "[beta" in it
120+
branch = "beta"
121+
```
122+
110123
## Implementation
111124

112125
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)