Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/crates/sources/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::borrow::Cow;
use std::str::FromStr;

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

Expand Down
8 changes: 3 additions & 5 deletions src/report/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,11 +483,9 @@ fn crate_to_url(c: &Crate) -> String {
format!("https://github.com/{}/{}", repo.org, repo.name)
}
}
Crate::Local(ref name) => format!(
"{}/tree/master/local-crates/{}",
crate::CRATER_REPO_URL,
name
),
Crate::Local(ref name) => {
format!("{}/tree/HEAD/local-crates/{}", crate::CRATER_REPO_URL, name)
}
Crate::Path(ref path) => utf8_percent_encode(path, &REPORT_ENCODE_SET).to_string(),
Crate::Git(ref repo) => repo.url.clone(),
}
Expand Down
2 changes: 1 addition & 1 deletion src/server/reports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ fn reports_thread(data: &Data, github_data: Option<&GithubData>) -> Fallible<()>
"warning",
format!(
"If you notice any spurious failure [please add them to the \
denylist]({}/blob/master/config.toml)!",
denylist]({}/blob/HEAD/config.toml)!",
crate::CRATER_REPO_URL,
),
)
Expand Down
8 changes: 3 additions & 5 deletions src/server/routes/webhooks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,9 @@ fn process_command(
)
.note(
"key",
format!(
"If you are a member of the Rust team and need access, [add yourself to \
the whitelist]({}/blob/master/config.toml).",
crate::CRATER_REPO_URL,
),
"If you are a member of a Rust team and need access, please update \
rust-lang/team to grant your team or yourself access to the `crater` \
permission.",
)
.send(&issue.url, data, github_data)?;
return Ok(());
Expand Down
6 changes: 3 additions & 3 deletions tests/minicrater/blacklist/full.html.context.expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
null,
null
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-fail"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-fail"
}
]
}
Expand All @@ -39,7 +39,7 @@
"name_idx": 0
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-pass"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-pass"
}
]
}
Expand All @@ -65,7 +65,7 @@
"name_idx": 1
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/test-fail"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/test-fail"
}
]
}
Expand Down
6 changes: 3 additions & 3 deletions tests/minicrater/blacklist/results.expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
null,
null
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-fail"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-fail"
},
{
"krate": {
Expand All @@ -28,7 +28,7 @@
"res": "test-pass"
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-pass"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-pass"
},
{
"krate": {
Expand All @@ -46,7 +46,7 @@
"res": "test-skipped"
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/test-fail"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/test-fail"
}
]
}
4 changes: 2 additions & 2 deletions tests/minicrater/clippy/full.html.context.expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"name_idx": 0
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-pass"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-pass"
}
]
}
Expand Down Expand Up @@ -60,7 +60,7 @@
"name_idx": 1
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/clippy-warn"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/clippy-warn"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion tests/minicrater/clippy/index.html.context.expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"name_idx": 1
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/clippy-warn"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/clippy-warn"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion tests/minicrater/clippy/markdown.md.context.expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"res": "build-fail:compiler-error(clippy::print_with_newline)"
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/clippy-warn"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/clippy-warn"
},
[]
]
Expand Down
4 changes: 2 additions & 2 deletions tests/minicrater/clippy/results.expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"res": "test-pass"
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-pass"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-pass"
},
{
"krate": {
Expand All @@ -34,7 +34,7 @@
"res": "build-fail:compiler-error(clippy::print_with_newline)"
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/clippy-warn"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/clippy-warn"
}
]
}
4 changes: 2 additions & 2 deletions tests/minicrater/doc/full.html.context.expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"name_idx": 0
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-pass"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-pass"
}
]
}
Expand All @@ -47,7 +47,7 @@
"name_idx": 1
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/docs-rs-features"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/docs-rs-features"
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions tests/minicrater/doc/results.expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"res": "test-pass"
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-pass"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-pass"
},
{
"krate": {
Expand All @@ -34,7 +34,7 @@
"res": "build-fail:unknown"
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/docs-rs-features"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/docs-rs-features"
}
]
}
34 changes: 17 additions & 17 deletions tests/minicrater/full/full.html.context.expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"name_idx": 1
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/beta-faulty-deps"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/beta-faulty-deps"
}
]
}
Expand Down Expand Up @@ -55,7 +55,7 @@
"name_idx": 4
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/ice-regression"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/ice-regression"
}
],
"build compiler-error(E0015)": [
Expand All @@ -75,7 +75,7 @@
"name_idx": 3
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/error-code"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/error-code"
}
],
"build failed (unknown)": [
Expand All @@ -95,7 +95,7 @@
"name_idx": 2
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/beta-regression"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/beta-regression"
}
]
}
Expand Down Expand Up @@ -136,7 +136,7 @@
"name_idx": 0
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/beta-fixed"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/beta-fixed"
},
{
"color_idx": 1,
Expand All @@ -154,7 +154,7 @@
"name_idx": 5
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/network-access"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/network-access"
}
]
}
Expand Down Expand Up @@ -182,7 +182,7 @@
"name_idx": 6
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/broken-cargotoml"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/broken-cargotoml"
},
{
"color_idx": 2,
Expand All @@ -200,7 +200,7 @@
"name_idx": 7
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/yanked-deps"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/yanked-deps"
}
]
}
Expand All @@ -226,7 +226,7 @@
"name_idx": 2
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-fail"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-fail"
},
{
"color_idx": 3,
Expand All @@ -244,7 +244,7 @@
"name_idx": 1
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/faulty-deps"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/faulty-deps"
}
]
}
Expand All @@ -270,7 +270,7 @@
"name_idx": 0
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-pass"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/build-pass"
},
{
"color_idx": 4,
Expand All @@ -288,7 +288,7 @@
"name_idx": 0
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/clippy-warn"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/clippy-warn"
},
{
"color_idx": 4,
Expand All @@ -306,7 +306,7 @@
"name_idx": 0
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/docs-rs-features"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/docs-rs-features"
},
{
"color_idx": 4,
Expand All @@ -324,7 +324,7 @@
"name_idx": 0
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/missing-examples"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/missing-examples"
},
{
"color_idx": 4,
Expand All @@ -342,7 +342,7 @@
"name_idx": 0
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/outdated-lockfile"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/outdated-lockfile"
}
]
}
Expand All @@ -360,7 +360,7 @@
null,
null
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/memory-hungry"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/memory-hungry"
}
]
}
Expand All @@ -386,7 +386,7 @@
"name_idx": 5
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/test-fail"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/test-fail"
}
]
}
Expand Down
12 changes: 6 additions & 6 deletions tests/minicrater/full/index.html.context.expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"name_idx": 1
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/beta-faulty-deps"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/beta-faulty-deps"
}
]
}
Expand Down Expand Up @@ -55,7 +55,7 @@
"name_idx": 4
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/ice-regression"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/ice-regression"
}
],
"build compiler-error(E0015)": [
Expand All @@ -75,7 +75,7 @@
"name_idx": 3
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/error-code"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/error-code"
}
],
"build failed (unknown)": [
Expand All @@ -95,7 +95,7 @@
"name_idx": 2
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/beta-regression"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/beta-regression"
}
]
}
Expand Down Expand Up @@ -136,7 +136,7 @@
"name_idx": 0
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/beta-fixed"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/beta-fixed"
},
{
"color_idx": 1,
Expand All @@ -154,7 +154,7 @@
"name_idx": 5
}
],
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/network-access"
"url": "https://github.com/rust-lang/crater/tree/HEAD/local-crates/network-access"
}
]
}
Expand Down
Loading