Include names of committers in HipChat notifications
HipChat notification messages now say which committers were responsible, e.g. Job patchelf:trunk:tarball: Failed, probably due to 2 commits by Eelco Dolstra
This commit is contained in:
@ -7,11 +7,19 @@ use Module::Pluggable
|
||||
|
||||
sub new {
|
||||
my ($class, %args) = @_;
|
||||
my $self = { db => $args{db}, config => $args{config} };
|
||||
my $self = { db => $args{db}, config => $args{config}, plugins => $args{plugins} };
|
||||
bless $self, $class;
|
||||
return $self;
|
||||
}
|
||||
|
||||
sub instantiate {
|
||||
my ($class, %args) = @_;
|
||||
my $plugins = [];
|
||||
$args{plugins} = $plugins;
|
||||
push @$plugins, $class->plugins(%args);
|
||||
return @$plugins;
|
||||
}
|
||||
|
||||
# Called when build $build has finished. If the build failed, then
|
||||
# $dependents is an array ref to a list of builds that have also
|
||||
# failed as a result (i.e. because they depend on $build or a failed
|
||||
@ -34,4 +42,12 @@ sub fetchInput {
|
||||
return undef;
|
||||
}
|
||||
|
||||
# Get the commits to repository ‘$value’ between revisions ‘$rev1’ and
|
||||
# ‘$rev2’. Each commit should be a hash ‘{ revision = "..."; author =
|
||||
# "..."; email = "..."; }’.
|
||||
sub getCommits {
|
||||
my ($self, $type, $value, $rev1, $rev2) = @_;
|
||||
return [];
|
||||
}
|
||||
|
||||
1;
|
||||
|
Reference in New Issue
Block a user