Merge pull request #529 from bennofs/feat-all-builds

feat: add /eval/<id>/builds endpoint
This commit is contained in:
Eelco Dolstra 2018-11-19 17:36:19 +01:00 committed by GitHub
commit cd234f6a14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -264,4 +264,15 @@ sub store_paths : Chained('evalChain') PathPart('store-paths') Args(0) {
}
# Return full info about all the builds in this evaluation.
sub all_builds : Chained('evalChain') PathPart('builds') Args(0) {
my ($self, $c) = @_;
my @builds = $c->stash->{eval}->builds;
$self->status_ok(
$c,
entity => [@builds],
);
}
1;