actionsListRepoVariables
List repository variables
Details
- Method:
GET - Path:
/repos/{owner}/{repo}/actions/variables - Operation ID:
actions/list-repo-variables
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"
},
"per_page": {
"description": "The number of results per page (max 30). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
"required": false,
"location": "query",
"type": "integer"
},
"page": {
"description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
"required": false,
"location": "query",
"type": "integer"
}
}Response Schema
{
"type": "object",
"required": [
"total_count",
"variables"
],
"properties": {
"total_count": {
"type": "integer"
},
"variables": {
"type": "array",
"items": {
"title": "Actions Variable",
"type": "object",
"properties": {
"name": {
"description": "The name of the variable.",
"example": "USERNAME",
"type": "string"
},
"value": {
"description": "The value of the variable.",
"example": "octocat",
"type": "string"
},
"created_at": {
"description": "The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.",
"type": "string",
"format": "date-time",
"example": "2019-01-24T22:45:36.000Z"
},
"updated_at": {
"description": "The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.",
"type": "string",
"format": "date-time",
"example": "2019-01-24T22:45:36.000Z"
}
},
"required": [
"name",
"value",
"created_at",
"updated_at"
]
}
}
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('actionsListRepoVariables', {
# Add required parameters here
})