From c33c6afda32179210884db54a6520f4ca33c7d60 Mon Sep 17 00:00:00 2001 From: Alfie Jones Date: Wed, 6 Mar 2024 16:28:41 +0000 Subject: [PATCH] reducing parent builds when using latest from branch --- .changeset/chilly-days-watch.md | 6 ++++++ integrations/cli/cli-api/src/helpers/build.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/chilly-days-watch.md diff --git a/.changeset/chilly-days-watch.md b/.changeset/chilly-days-watch.md new file mode 100644 index 00000000..f21e506a --- /dev/null +++ b/.changeset/chilly-days-watch.md @@ -0,0 +1,6 @@ +--- +"pixeleye": patch +"@pixeleye/cli-api": patch +--- + +Reducing parent branches when using latest in branch diff --git a/integrations/cli/cli-api/src/helpers/build.ts b/integrations/cli/cli-api/src/helpers/build.ts index 356473da..b4922ab8 100644 --- a/integrations/cli/cli-api/src/helpers/build.ts +++ b/integrations/cli/cli-api/src/helpers/build.ts @@ -84,7 +84,7 @@ export async function createBuild(api: APIType) { shas: mergeBase ? [mergeBase] : undefined, }, queries: { - limit: 10, + limit: mergeBase ? 10 : 1, branch: mergeBase ? undefined : env.targetBranch, }, });