Skip to content

Commit

Permalink
fix: relied on vscode to much to catch this (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: Wolftousen <eliot.t.eikenberry@perilforge.com>
  • Loading branch information
Wolftousen and Wolftousen authored Aug 16, 2024
1 parent 7bcd438 commit 580f6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/loki.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ async fn sort_deploy_data(data: QueryResponse) -> HashMap<String, Vec<DeployEntr
match b.json_data.body.workflow_run {
Some(wf) => {
if wf.workflow_id.is_some() {
wf_url = d.url.replace("api.", "").replace("repos/", "").replace("deployments/", "actions/runs/").replace(d.id.to_string().as_str(), wf.workflow_id.to_string().as_str());
wf_url = d.url.replace("api.", "").replace("repos/", "").replace("deployments/", "actions/runs/").replace(d.id.to_string().as_str(), wf.workflow_id.unwrap().to_string().as_str());
} else if wf.url.is_some() {
wf_url = wf.url.unwrap().replace("api.", "").replace("repos/", "");
}
Expand Down

0 comments on commit 580f6d7

Please sign in to comment.