announcing good-first-issue tags added on @tangled.sh (not affiliated with tangled!)

try very hard to render the issues url

+11 -10
+11 -10
src/main.rs
··· 281 continue; 282 }; 283 284 - let repo_handle = match get_handle(&req_client, repo_uri.authority().as_str()).await { 285 - Ok(Some(h)) => h, 286 - Ok(None) => { 287 - eprintln!("invalid handle from identifier in {repo_uri} for {subject}"); 288 - continue; 289 - } 290 - Err(e) => { 291 - eprintln!("failed to get repo handle from identifier: {e} for {subject}"); 292 - continue; 293 } 294 }; 295 296 - let issues_url = format!("https://tangled.org/@{repo_handle}/{name}/issues"); 297 println!("hi: {issues_url}"); 298 299 // let message = format!(r#""#);
··· 281 continue; 282 }; 283 284 + let nice_tangled_repo_id = match repo_uri.authority() { 285 + AtIdentifier::Handle(h) => format!("@{h}"), 286 + AtIdentifier::Did(did) => match get_handle(&req_client, did.as_str()).await { 287 + Err(e) => { 288 + eprintln!("failed to get mini doc from repo identifier: {e} for {subject}"); 289 + continue; 290 + } 291 + Ok(None) => did.to_string(), 292 + Ok(Some(h)) => format!("@{h}"), 293 } 294 }; 295 296 + let issues_url = format!("https://tangled.org/{nice_tangled_repo_id}/{name}/issues"); 297 + 298 println!("hi: {issues_url}"); 299 300 // let message = format!(r#""#);