You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is what happens when a PR's code is based on a very old commit from an upstream branch:
4
+
It passes when tested locally, but fails when the PR is submitted for testing through CI.
5
+
6
+
This is because the CI applies the commit patches to the current upstream branch,
7
+
which may have new test cases, so it won't pass. We need to rebase the PR to the nearest upstream branch.
8
+
9
+
This option checks if a PR is based on an older branch upstream.
10
+
11
+
## Configuration
12
+
13
+
This feature is enabled on a repository by having a `[behind-upstream]` table in `triagebot.toml`:
14
+
15
+
```toml
16
+
[behind-upstream]
17
+
```
18
+
or, you can set the day threshold,
19
+
```toml
20
+
[behind-upstream]
21
+
days-threshold = 7
22
+
```
23
+
24
+
## Implementation
25
+
26
+
See [`src/handlers/check_commits/behind_upstream.rs`](https://github.com/rust-lang/triagebot/blob/HEAD/src/handlers/check_commits/behind_upstream.rs).
0 commit comments