mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 17:39:50 +00:00
Use automatic pagination mapping function
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user