From 27cdad3802138099749d927fb17283d2d713701a Mon Sep 17 00:00:00 2001 From: iximeow Date: Wed, 28 Jun 2023 23:30:35 -0700 Subject: repo name on job page links back to repo summary --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index c1d9664..5713d08 100644 --- a/src/main.rs +++ b/src/main.rs @@ -437,6 +437,7 @@ async fn handle_commit_status(Path(path): Path<(String, String, String)>, State( let deployed = false; let head = format!("ci.butactuallyin.space - {}", repo_name); + let repo_html = format!("{}", &repo_name, &repo_name); let remote_commit_elem = format!("{}", &remote_path, &sha, &sha); let status_elem = match state { JobState::Pending | JobState::Started => { @@ -505,7 +506,7 @@ async fn handle_commit_status(Path(path): Path<(String, String, String)>, State( html.push_str(&format!(" {}\n", head)); html.push_str(" \n"); html.push_str("
\n");
-    html.push_str(&format!("repo: {}\n", repo_name));
+    html.push_str(&format!("repo: {}\n", repo_html));
     html.push_str(&format!("commit: {}\n", remote_commit_elem));
     html.push_str(&format!("status: {}\n", status_elem));
     if let Some(desc) = result_desc {
-- 
cgit v1.1