Skip to content

Commit e16647b

Browse files
authored
Merge pull request #2702 from rust-lang/tshepang/make-date-check-entries-clickable
make date-check entries clickable
2 parents f335c2f + 59ebeb8 commit e16647b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

ci/date-check/src/main.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,13 @@ fn main() {
153153
println!();
154154

155155
for (path, dates) in dates_by_file {
156-
println!("- {}", path.strip_prefix(&root_dir_path).unwrap_or(&path).display(),);
156+
let path = path.strip_prefix(&root_dir_path).unwrap_or(&path).display();
157+
println!("- {path}");
157158
for (line, date) in dates {
158-
println!(" - [ ] line {}: {}", line, date);
159+
let url = format!(
160+
"https://github.com/rust-lang/rustc-dev-guide/blob/main/{path}?plain=1#L{line}"
161+
);
162+
println!(" - [ ] {date} [line {line}]({url})");
159163
}
160164
}
161165
println!();

0 commit comments

Comments
 (0)