File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 16
16
- [ PR Assignment] ( ./triagebot/pr-assignment.md )
17
17
- [ Tracking PR assignment] ( ./triagebot/pr-assignment-tracking.md )
18
18
- [ Autolabels] ( ./triagebot/autolabels.md )
19
+ - [ Behind Upstream] ( ./triagebot/behind-upstream.md )
19
20
- [ Canonicalize Issue Links] ( ./triagebot/canonicalize-issue-links.md )
20
21
- [ Close] ( ./triagebot/close.md )
21
22
- [ Documentation Updates] ( ./triagebot/doc-updates.md )
Original file line number Diff line number Diff line change
1
+ # Behind Upstream
2
+
3
+ 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 ) .
You can’t perform that action at this time.
0 commit comments