Skip to content

Commit

Permalink
reducing parent builds when using latest from branch
Browse files Browse the repository at this point in the history
  • Loading branch information
AlfieJones committed Mar 6, 2024
1 parent 97b1253 commit c33c6af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/chilly-days-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"pixeleye": patch
"@pixeleye/cli-api": patch
---

Reducing parent branches when using latest in branch
2 changes: 1 addition & 1 deletion integrations/cli/cli-api/src/helpers/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
});
Expand Down

0 comments on commit c33c6af

Please sign in to comment.