Skip to content

Commit a3078e1

Browse files
Merge pull request #808 from Mark-Simulacrum/next
Replace master -> HEAD in various places
2 parents f04f8ab + 19fa7a3 commit a3078e1

26 files changed

+88
-92
lines changed

‎src/crates/sources/github.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::borrow::Cow;
44
use std::str::FromStr;
55

66
static CACHED_LIST: &str =
7-
"https://raw.githubusercontent.com/rust-lang/rust-repos/master/data/github.csv";
7+
"https://raw.githubusercontent.com/rust-lang/rust-repos/HEAD/data/github.csv";
88
const DUMMY_ORG: &str = "ghost";
99
const DUMMY_NAME: &str = "missing";
1010

‎src/report/mod.rs‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,11 +483,9 @@ fn crate_to_url(c: &Crate) -> String {
483483
format!("https://github.com/{}/{}", repo.org, repo.name)
484484
}
485485
}
486-
Crate::Local(ref name) => format!(
487-
"{}/tree/master/local-crates/{}",
488-
crate::CRATER_REPO_URL,
489-
name
490-
),
486+
Crate::Local(ref name) => {
487+
format!("{}/tree/HEAD/local-crates/{}", crate::CRATER_REPO_URL, name)
488+
}
491489
Crate::Path(ref path) => utf8_percent_encode(path, &REPORT_ENCODE_SET).to_string(),
492490
Crate::Git(ref repo) => repo.url.clone(),
493491
}

‎src/server/reports.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ fn reports_thread(data: &Data, github_data: Option<&GithubData>) -> Fallible<()>
139139
"warning",
140140
format!(
141141
"If you notice any spurious failure [please add them to the \
142-
denylist]({}/blob/master/config.toml)!",
142+
denylist]({}/blob/HEAD/config.toml)!",
143143
crate::CRATER_REPO_URL,
144144
),
145145
)

‎src/server/routes/webhooks/mod.rs‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,9 @@ fn process_command(
9898
)
9999
.note(
100100
"key",
101-
format!(
102-
"If you are a member of the Rust team and need access, [add yourself to \
103-
the whitelist]({}/blob/master/config.toml).",
104-
crate::CRATER_REPO_URL,
105-
),
101+
"If you are a member of a Rust team and need access, please update \
102+
rust-lang/team to grant your team or yourself access to the `crater` \
103+
permission.",
106104
)
107105
.send(&issue.url, data, github_data)?;
108106
return Ok(());

‎tests/minicrater/blacklist/full.html.context.expected.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
null,
1414
null
1515
],
16-
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-fail"
16+
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-fail"
1717
}
1818
]
1919
}
@@ -39,7 +39,7 @@
3939
"name_idx": 0
4040
}
4141
],
42-
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-pass"
42+
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-pass"
4343
}
4444
]
4545
}
@@ -65,7 +65,7 @@
6565
"name_idx": 1
6666
}
6767
],
68-
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/test-fail"
68+
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/test-fail"
6969
}
7070
]
7171
}

‎tests/minicrater/blacklist/results.expected.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
null,
1111
null
1212
],
13-
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-fail"
13+
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-fail"
1414
},
1515
{
1616
"krate": {
@@ -28,7 +28,7 @@
2828
"res": "test-pass"
2929
}
3030
],
31-
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-pass"
31+
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-pass"
3232
},
3333
{
3434
"krate": {
@@ -46,7 +46,7 @@
4646
"res": "test-skipped"
4747
}
4848
],
49-
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/test-fail"
49+
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/test-fail"
5050
}
5151
]
5252
}

‎tests/minicrater/clippy/full.html.context.expected.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"name_idx": 0
2222
}
2323
],
24-
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-pass"
24+
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-pass"
2525
}
2626
]
2727
}
@@ -60,7 +60,7 @@
6060
"name_idx": 1
6161
}
6262
],
63-
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/clippy-warn"
63+
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/clippy-warn"
6464
}
6565
]
6666
}

‎tests/minicrater/clippy/index.html.context.expected.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"name_idx": 1
3535
}
3636
],
37-
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/clippy-warn"
37+
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/clippy-warn"
3838
}
3939
]
4040
}

‎tests/minicrater/clippy/markdown.md.context.expected.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"res": "build-fail:compiler-error(clippy::print_with_newline)"
2424
}
2525
],
26-
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/clippy-warn"
26+
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/clippy-warn"
2727
},
2828
[]
2929
]

‎tests/minicrater/clippy/results.expected.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"res": "test-pass"
1717
}
1818
],
19-
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-pass"
19+
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-pass"
2020
},
2121
{
2222
"krate": {
@@ -34,7 +34,7 @@
3434
"res": "build-fail:compiler-error(clippy::print_with_newline)"
3535
}
3636
],
37-
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/clippy-warn"
37+
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/clippy-warn"
3838
}
3939
]
4040
}

0 commit comments

Comments
 (0)