diff --git a/endpoints/api/trigger.py b/endpoints/api/trigger.py index 2a56064b8..8ba91463b 100644 --- a/endpoints/api/trigger.py +++ b/endpoints/api/trigger.py @@ -226,9 +226,9 @@ class ActivateBuildTrigger(RepositoryParamResource): @resource('/v1/repository//trigger//builds') class TriggerBuildList(RepositoryParamResource): """ Resource to represent builds that were activated from the specified trigger. """ + @require_repo_admin @parse_args @query_param('limit', 'The maximum number of builds to return', type=int, default=5) - @require_repo_admin @nickname('listTriggerRecentBuilds') def get(self, args, namespace, repository, trigger_uuid): """ List the builds started by the specified trigger. """