Skip to content

Commit 4bbf8b3

Browse files
authored
fix: branch listing shows all active branches (#198)
fix: remove activeOnly filter and redundant merged branch filtering in branch listing
1 parent 78b79b0 commit 4bbf8b3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils/branch.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ export async function fetchBranches(cmd: BaseOptions) {
1313
const loadable = await cmd.client.GET('/v2/projects/{projectId}/branches', {
1414
params: {
1515
path: { projectId: cmd.client.getProjectId() },
16-
query: { size: 10000, activeOnly: true },
16+
query: { size: 10000 },
1717
},
1818
});
1919
handleLoadableError(loadable);
2020
return loadable.data?._embedded?.branches ?? [];
2121
}
2222

2323
export function listBranches(branches: components['schemas']['BranchModel'][]) {
24-
branches = branches.filter((b) => !b.merge || !b.merge.mergedAt);
25-
2624
if (!branches.length) {
2725
success('No branches found.');
2826
return;

0 commit comments

Comments
 (0)