Result::Projects: give a builds method to access all of a project's builds

This commit is contained in:
Graham Christensen 2022-01-14 10:54:24 -05:00
parent dcefb88373
commit 4086f3bafd

View file

@ -248,6 +248,11 @@ __PACKAGE__->many_to_many("usernames", "projectmembers", "username");
use JSON::MaybeXS; use JSON::MaybeXS;
sub builds {
my ($self) = @_;
return $self->jobsets->related_resultset('builds');
};
sub as_json { sub as_json {
my $self = shift; my $self = shift;