Skip to content

Commit d23bb50

Browse files
committed
Add doc for triagebot [behind-upstream] handler
Signed-off-by: xizheyin <[email protected]>
1 parent 4aebbc9 commit d23bb50

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- [PR Assignment](./triagebot/pr-assignment.md)
1717
- [Tracking PR assignment](./triagebot/pr-assignment-tracking.md)
1818
- [Autolabels](./triagebot/autolabels.md)
19+
- [Behind Upstream](./triagebot/behind-upstream.md)
1920
- [Canonicalize Issue Links](./triagebot/canonicalize-issue-links.md)
2021
- [Close](./triagebot/close.md)
2122
- [Documentation Updates](./triagebot/doc-updates.md)

src/triagebot/behind-upstream.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Behind Upstream
2+
3+
Sometimes a PR may be based on a very old commit in the upstream branch, and when submitting the PR test, CI will apply the patch to the current upstream repository, which may conflict with the new test, so the branch needs to be updated in time.
4+
5+
This option checks if a PR is based on an older branch upstream.
6+
7+
## Configuration
8+
9+
This feature is enabled on a repository by having a `[behind-upstream]` table in `triagebot.toml`:
10+
11+
```toml
12+
[behind-upstream]
13+
```
14+
or, you can set the day threshold,
15+
```toml
16+
[behind-upstream]
17+
days-threshold = 7
18+
```
19+
20+
## Implementation
21+
22+
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

Comments
 (0)