File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2702,14 +2702,18 @@ class ExperimentalApiMethods {
2702
2702
queryExpressions . push ( `owner:${ filter . username } ` ) ;
2703
2703
}
2704
2704
2705
- const workspaces = await API . getWorkspaces ( {
2705
+ const res = await API . getWorkspaces ( {
2706
2706
q : queryExpressions . join ( " " ) ,
2707
2707
} ) ;
2708
+ // Exclude prebuild workspaces as they are not user-facing.
2709
+ const workspaces = res . workspaces . filter (
2710
+ ( workspace ) => ! workspace . is_prebuild ,
2711
+ ) ;
2708
2712
const prompts = await API . experimental . getAITasksPrompts (
2709
- workspaces . workspaces . map ( ( workspace ) => workspace . latest_build . id ) ,
2713
+ workspaces . map ( ( workspace ) => workspace . latest_build . id ) ,
2710
2714
) ;
2711
2715
2712
- return workspaces . workspaces . map ( ( workspace ) => ( {
2716
+ return workspaces . map ( ( workspace ) => ( {
2713
2717
workspace,
2714
2718
prompt : prompts . prompts [ workspace . latest_build . id ] ,
2715
2719
} ) ) ;
You can’t perform that action at this time.
0 commit comments