Merge remote-tracking branch 'upstream/who-broke-builds' into upstream-master
Include information about who changed the build status in notification emails, and enable optional per-input notification of said committers. Conflicts due to two branches modifying the database schema. Signed-off-by: Shea Levy <shea@shealevy.com> Conflicts: src/lib/Hydra/Schema/Jobsets.pm src/sql/upgrade-23.sql
This commit is contained in:
@ -229,7 +229,11 @@ sub updateJobset {
|
||||
error($c, "Invalid input name ‘$name’.") unless $name =~ /^[[:alpha:]][\w-]*$/;
|
||||
error($c, "Invalid input type ‘$type’.") unless defined $c->stash->{inputTypes}->{$type};
|
||||
|
||||
my $input = $jobset->jobsetinputs->create({ name => $name, type => $type });
|
||||
my $input = $jobset->jobsetinputs->create({
|
||||
name => $name,
|
||||
type => $type,
|
||||
emailresponsible => defined $c->stash->{params}->{"input-$baseName-emailresponsible"} ? 1 : 0
|
||||
});
|
||||
|
||||
# Set the values for this input.
|
||||
my @values = ref($values) eq 'ARRAY' ? @{$values} : ($values);
|
||||
|
Reference in New Issue
Block a user