From a6d9201947aa1468d31ef5c2651251ceeefceb5c Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Mon, 24 Jul 2017 15:12:52 -0400 Subject: [PATCH] GithubStatus: Allow config to specify the integration description and context --- src/lib/Hydra/Plugin/GithubStatus.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Hydra/Plugin/GithubStatus.pm b/src/lib/Hydra/Plugin/GithubStatus.pm index 355e7010..08ba25bb 100644 --- a/src/lib/Hydra/Plugin/GithubStatus.pm +++ b/src/lib/Hydra/Plugin/GithubStatus.pm @@ -40,8 +40,8 @@ sub common { { state => $finished ? toGithubState($b->buildstatus) : "pending", target_url => "$baseurl/build/" . $b->id, - description => "Hydra build #" . $b->id . " of $jobName", - context => "continuous-integration/hydra:" . $jobName . $contextTrailer + description => $conf->{description} // "Hydra build #" . $b->id . " of $jobName", + context => $conf->{context} // "continuous-integration/hydra:" . $jobName . $contextTrailer }); my $inputs_cfg = $conf->{inputs}; my @inputs = defined $inputs_cfg ? ref $inputs_cfg eq "ARRAY" ? @$inputs_cfg : ($inputs_cfg) : ();