Skip to content

Commit cf580b8

Browse files
committed
Revert bors email to the original homu one
1 parent faea581 commit cf580b8

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

src/build_helper/src/git.rs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ pub fn has_changed_since(git_dir: &Path, base: &str, paths: &[&str]) -> bool {
152152
})
153153
}
154154

155-
const LEGACY_BORS_EMAIL: &str = "bors@rust-lang.org";
155+
// Temporary e-mail used by new bors for merge commits for a few days, until it learned how to reuse
156+
// the original homu e-mail
157+
// FIXME: remove in Q2 2026
158+
const TEMPORARY_BORS_EMAIL: &str = "122020455+rust-bors[bot]@users.noreply.github.com";
156159

157160
/// Escape characters from the git user e-mail, so that git commands do not interpret it as regex
158161
/// special characters.
@@ -193,10 +196,9 @@ fn get_latest_upstream_commit_that_modified_files(
193196
&escape_email_git_regex(git_config.git_merge_commit_email),
194197
]);
195198

196-
// Also search for legacy bors account, before we accrue enough commits to
197-
// have changes to all relevant file paths done by new bors.
198-
if git_config.git_merge_commit_email != LEGACY_BORS_EMAIL {
199-
git.args(["--author", LEGACY_BORS_EMAIL]);
199+
// Also search for temporary bors account
200+
if git_config.git_merge_commit_email != TEMPORARY_BORS_EMAIL {
201+
git.args(["--author", &escape_email_git_regex(TEMPORARY_BORS_EMAIL)]);
200202
}
201203

202204
if !target_paths.is_empty() {
@@ -248,10 +250,9 @@ pub fn get_closest_upstream_commit(
248250
base,
249251
]);
250252

251-
// Also search for legacy bors account, before we accrue enough commits to
252-
// have changes to all relevant file paths done by new bors.
253-
if config.git_merge_commit_email != LEGACY_BORS_EMAIL {
254-
git.args(["--author", LEGACY_BORS_EMAIL]);
253+
// Also search for temporary bors account
254+
if config.git_merge_commit_email != TEMPORARY_BORS_EMAIL {
255+
git.args(["--author", &escape_email_git_regex(TEMPORARY_BORS_EMAIL)]);
255256
}
256257

257258
let output = output_result(&mut git)?.trim().to_owned();

src/stage0

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dist_server=https://static.rust-lang.org
22
artifacts_server=https://ci-artifacts.rust-lang.org/rustc-builds
33
artifacts_with_llvm_assertions_server=https://ci-artifacts.rust-lang.org/rustc-builds-alt
4-
git_merge_commit_email=122020455+rust-bors[bot]@users.noreply.github.com
4+
git_merge_commit_email=bors@rust-lang.org
55
nightly_branch=main
66

77
# The configuration above this comment is editable, and can be changed

0 commit comments

Comments
 (0)