Skip to content

Commit 37fe061

Browse files
committed
fix: runs filter
1 parent 935325a commit 37fe061

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/ipcs/ipcGitHub.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ ipcMain.handle('git:api:getAction', async (_, id: string, filterBy: string[]) =>
6262

6363
const { data } = await octokit().rest.actions.listWorkflowRunsForRepo({
6464
owner,
65-
per_page: 3,
6665
repo
6766
});
6867

@@ -79,7 +78,7 @@ ipcMain.handle('git:api:getAction', async (_, id: string, filterBy: string[]) =>
7978
return { message: 'No actions for this branch', success: false };
8079
}
8180

82-
return { data, filterBy, runs, success: true };
81+
return { runs: runs.slice(0, 3), success: true };
8382
} catch (e) {
8483
log.error(e);
8584
return { message: e.message, success: false };

0 commit comments

Comments
 (0)