Behind Upstream
This handler checks if a PR is based on an X days old commit.
Context
When a PR’s code is based on a very old commit from an upstream branch: It passes when tested locally, but fails when the PR is submitted for testing through CI.
This is because the CI applies the commit patches to the current upstream branch, which may have new test cases, so it won’t pass. We need to rebase the PR to the nearest upstream branch.
Configuration
The default threshold is currently set at 7 days.
This feature is enabled on a repository by having a [behind-upstream]
table in triagebot.toml
:
[behind-upstream]
or, you can set the day threshold,
[behind-upstream]
days-threshold = 7