actionsGetActionsCacheRetentionLimitForRepository
Get GitHub Actions cache retention limit for a repository
Details
- Method:
GET - Path:
/repos/{owner}/{repo}/actions/cache/retention-limit - Operation ID:
actions/get-actions-cache-retention-limit-for-repository
Parameters
{
"owner": {
"description": "The account owner of the repository. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"repo": {
"description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
}
}Response Schema
{
"title": "Actions cache retention limit for a repository",
"description": "GitHub Actions cache retention policy for a repository.",
"type": "object",
"properties": {
"max_cache_retention_days": {
"description": "The maximum number of days to keep caches in this repository.",
"type": "integer",
"example": 14
}
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('actionsGetActionsCacheRetentionLimitForRepository', {
# Add required parameters here
})