8000 Automatically clean up old TRAP caches by henrymercer · Pull Request #2306 · github/codeql-action · GitHub
[go: up one dir, main page]

Skip to content

Automatically clean up old TRAP caches #2306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use automatic pagination mapping function
  • Loading branch information
henrymercer committed May 23, 2024
commit 898dead2d681203a513f604609250f090e4c3e6f
7 changes: 6 additions & 1 deletion lib/api-client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/api-client.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions src/api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,12 @@ export async function listActionsCaches(
logger.debug(`Retrieving Actions caches for key ${key} and ref ${ref}`);

const apiClient = getApiClient();
return await apiClient.paginate(
"GET /repos/{owner}/{repo}/actions/caches",
{ owner: repositoryNwo.owner, repo: repositoryNwo.repo, key, ref },
(response) => response.data.actions_caches,
);
return await apiClient.paginate("GET /repos/{owner}/{repo}/actions/caches", {
owner: repositoryNwo.owner,
repo: repositoryNwo.repo,
key,
ref,
});
}

export function wrapApiConfigurationError(e: unknown) {
Expand Down
0