Skip to content

Commit 5c4f2b1

Browse files
authored
Merge pull request #2148 from xizheyin/dont-rewarn-behind-upstream
Avoid emit [behind-upstream] more than once
2 parents 349bce4 + 0331d10 commit 5c4f2b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/handlers/check_commits/behind_upstream.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ pub(super) async fn behind_upstream(
2727
days_old
2828
);
2929

30+
// The message remain the same to ensure the warning is emit only once for each base commit.
3031
Some(format!(
31-
r"This PR is based on an [upstream commit]({upstream_commit_url}) that is {days_old} days old.
32+
r"This PR is based on an [upstream commit]({upstream_commit_url}) that is older than {age_threshold} days.
3233
3334
*It's recommended to update your branch according to the [rustc-dev-guide](https://rustc-dev-guide.rust-lang.org/contributing.html#keeping-your-branch-up-to-date).*",
3435
))

0 commit comments

Comments
 (0)