send completed_at time

This commit is contained in:
Graham Christensen 2019-04-14 07:26:15 -04:00
parent bc943c2415
commit 4f036ec91b
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -24,6 +24,8 @@ use std::collections::HashMap;
use std::path::Path; use std::path::Path;
use tasks::evaluate::make_gist; use tasks::evaluate::make_gist;
use uuid::Uuid; use uuid::Uuid;
use chrono::{DateTime, Utc};
pub struct NixpkgsStrategy<'a> { pub struct NixpkgsStrategy<'a> {
job: &'a EvaluationJob, job: &'a EvaluationJob,
@ -169,7 +171,9 @@ impl<'a> NixpkgsStrategy<'a> {
return vec![CheckRunOptions { return vec![CheckRunOptions {
name: "Evaluation Performance Report".to_owned(), name: "Evaluation Performance Report".to_owned(),
actions: None, actions: None,
completed_at: None, completed_at: Some(
Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true),
),
started_at: None, started_at: None,
conclusion: Some(Conclusion::Success), conclusion: Some(Conclusion::Success),
status: Some(CheckRunState::Completed), status: Some(CheckRunState::Completed),