Skip to content

Commit 520614e

Browse files
committed
Avoid emit [behind-upstream] more than once
Signed-off-by: xizheyin <[email protected]>
1 parent 349bce4 commit 520614e

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.
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)