Skip to content

Commit a37b4e6

Browse files
committed
Shorten libs issues urls in agenda.
1 parent 3b4f88a commit a37b4e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/agenda-generator/src/generator.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ fn shorten(url: &str) -> String {
2525
format!("rust.tf/rfc{num}")
2626
} else if let Some(num) = url.strip_prefix("https://github.com/rust-lang/rfcs/pull/") {
2727
format!("rust.tf/rfc{num}")
28+
} else if let Some(num) = url.strip_prefix("https://github.com/rust-lang/libs-team/issues/") {
29+
format!("rust.tf/libs{num}")
30+
} else if let Some(num) = url.strip_prefix("https://github.com/rust-lang/libs-team/pull/") {
31+
format!("rust.tf/libs{num}")
2832
} else if let Some(url) = url.strip_prefix("https://") {
2933
url.to_string()
3034
} else {

0 commit comments

Comments
 (0)