From 14a525059e9b2effc2c7f7fa050312a0f62fb285 Mon Sep 17 00:00:00 2001 From: Tiffany K Date: Tue, 6 Aug 2024 10:27:36 -0700 Subject: [PATCH 1/2] fix(3163): Update list pipeline events ID schema description for Swagger [skip ci] --- plugins/pipelines/listEvents.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/pipelines/listEvents.js b/plugins/pipelines/listEvents.js index 564f97afd..b8ff90586 100644 --- a/plugins/pipelines/listEvents.js +++ b/plugins/pipelines/listEvents.js @@ -17,7 +17,7 @@ const INEQUALITY_SIGNS = /^(gt|lt):([\d]+)$/; const queryIdSchema = joi .alternatives() .try(pipelineIdSchema, joi.string().regex(INEQUALITY_SIGNS)) - .label('Query ID schema') + .description('Event ID; alternatively can use greater than(gt:) or less than(lt:) prefix') .example('gt:12345'); module.exports = () => ({ From e6547a9133304171714b5727004546a1137b9cff Mon Sep 17 00:00:00 2001 From: Tiffany K Date: Tue, 6 Aug 2024 10:30:03 -0700 Subject: [PATCH 2/2] Update README.md --- plugins/pipelines/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/pipelines/README.md b/plugins/pipelines/README.md index 35d724a1a..875a18a61 100644 --- a/plugins/pipelines/README.md +++ b/plugins/pipelines/README.md @@ -115,6 +115,7 @@ Query Params: `GET /pipelines/{id}/events?page={pageNumber}&count={countNumber}&sort={sort}&type={type}&prNum={prNumber}&sha={sha}` `GET /pipelines/{id}/events?id=gt:{eventId}&count={countNumber}` (greater than eventId) + `GET /pipelines/{id}/events?id=lt:{eventId}&count={countNumber}` (less than eventId) #### Get all pipeline builds