Debug a bit more status errors

This commit is contained in:
Graham Christensen 2020-04-02 09:31:10 -04:00
parent 1c1ccc8c7e
commit d4d4da9eee
No known key found for this signature in database
GPG key ID: FE918C3A98C1030F

View file

@ -174,12 +174,17 @@ impl<'a, E: stats::SysEvents + 'static> OneEval<'a, E> {
let mut builder = hubcaps::statuses::StatusOptions::builder(state); let mut builder = hubcaps::statuses::StatusOptions::builder(state);
builder.context("grahamcofborg-eval"); builder.context("grahamcofborg-eval");
builder.description(description); builder.description(description.clone());
if let Some(url) = url { if let Some(url) = url {
builder.target_url(url); builder.target_url(url);
} }
info!(
"Updating status on {}:{} -> {}",
&self.job.pr.number, &self.job.pr.head_sha, &description
);
self.repo self.repo
.statuses() .statuses()
.create(&self.job.pr.head_sha, &builder.build()) .create(&self.job.pr.head_sha, &builder.build())