| 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 |
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,
});| name | required | description |
|---|---|---|
| owner | yes |
The account owner of the repository. The name is not case sensitive. |
| repo | yes |
The name of the repository without the |
See also: GitHub Developer Guide documentation.