diff --git a/src/build_helper/src/git.rs b/src/build_helper/src/git.rs index 1fdc2ddb4cfc..330fb465de42 100644 --- a/src/build_helper/src/git.rs +++ b/src/build_helper/src/git.rs @@ -152,7 +152,10 @@ pub fn has_changed_since(git_dir: &Path, base: &str, paths: &[&str]) -> bool { }) } -const LEGACY_BORS_EMAIL: &str = "bors@rust-lang.org"; +// Temporary e-mail used by new bors for merge commits for a few days, until it learned how to reuse +// the original homu e-mail +// FIXME: remove in Q2 2026 +const TEMPORARY_BORS_EMAIL: &str = "122020455+rust-bors[bot]@users.noreply.github.com"; /// Escape characters from the git user e-mail, so that git commands do not interpret it as regex /// special characters. @@ -193,10 +196,9 @@ fn get_latest_upstream_commit_that_modified_files( &escape_email_git_regex(git_config.git_merge_commit_email), ]); - // Also search for legacy bors account, before we accrue enough commits to - // have changes to all relevant file paths done by new bors. - if git_config.git_merge_commit_email != LEGACY_BORS_EMAIL { - git.args(["--author", LEGACY_BORS_EMAIL]); + // Also search for temporary bors account + if git_config.git_merge_commit_email != TEMPORARY_BORS_EMAIL { + git.args(["--author", &escape_email_git_regex(TEMPORARY_BORS_EMAIL)]); } if !target_paths.is_empty() { @@ -248,10 +250,9 @@ pub fn get_closest_upstream_commit( base, ]); - // Also search for legacy bors account, before we accrue enough commits to - // have changes to all relevant file paths done by new bors. - if config.git_merge_commit_email != LEGACY_BORS_EMAIL { - git.args(["--author", LEGACY_BORS_EMAIL]); + // Also search for temporary bors account + if config.git_merge_commit_email != TEMPORARY_BORS_EMAIL { + git.args(["--author", &escape_email_git_regex(TEMPORARY_BORS_EMAIL)]); } let output = output_result(&mut git)?.trim().to_owned(); diff --git a/src/stage0 b/src/stage0 index 0686ddef7d95..ea0fe3bf84c4 100644 --- a/src/stage0 +++ b/src/stage0 @@ -1,7 +1,7 @@ dist_server=https://static.rust-lang.org artifacts_server=https://ci-artifacts.rust-lang.org/rustc-builds artifacts_with_llvm_assertions_server=https://ci-artifacts.rust-lang.org/rustc-builds-alt -git_merge_commit_email=122020455+rust-bors[bot]@users.noreply.github.com +git_merge_commit_email=bors@rust-lang.org nightly_branch=main # The configuration above this comment is editable, and can be changed