Skip to content

Commit

Permalink
feat: set details url to web frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Mar 15, 2024
1 parent c9a21c5 commit f1d3437
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions server/src/routes/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,19 +483,16 @@ pub async fn handle_success_message(
annotations: vec![],
images: vec![],
};
let mut builder = handler
let builder = handler
.update_check_run(CheckRunId(github_check_run_id as u64))
.status(octocrab::params::checks::CheckRunStatus::Completed)
.output(output)
.conclusion(if success {
CheckRunConclusion::Success
} else {
CheckRunConclusion::Failure
});

if let Some(log) = &job_ok.log_url {
builder = builder.details_url(log);
}
})
.details_url(format!("https://buildit.aosc.io/jobs/{}", job.id));

if let Err(e) = builder.send().await {
error!("Failed to update github check run: {e}");
Expand Down

0 comments on commit f1d3437

Please sign in to comment.