Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.24 KB

File metadata and controls

47 lines (36 loc) · 1.24 KB
name Get GitHub Actions cache retention limit for a repository
example octokit.rest.actions.getActionsCacheRetentionLimitForRepository({ owner, repo })
route GET /repos/{owner}/{repo}/actions/cache/retention-limit
scope actions
type API method

Get GitHub Actions cache retention limit for a repository

Gets GitHub Actions cache retention limit for a repository. This determines how long caches will be retained for, if not manually removed or evicted due to size constraints.

OAuth tokens and personal access tokens (classic) need the admin:repository scope to use this endpoint.

octokit.rest.actions.getActionsCacheRetentionLimitForRepository({
  owner,
  repo,
});

Parameters

name required description
owneryes

The account owner of the repository. The name is not case sensitive.

repoyes

The name of the repository without the .git extension. The name is not case sensitive.

See also: GitHub Developer Guide documentation.