reposGetCommitActivityStats
Get the last year of commit activity
Details
- Method:
GET - Path:
/repos/{owner}/{repo}/stats/commit_activity - Operation ID:
repos/get-commit-activity-stats
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
{
"type": "array",
"items": {
"title": "Commit Activity",
"description": "Commit Activity",
"type": "object",
"properties": {
"days": {
"type": "array",
"example": [
0,
3,
26,
20,
39,
1,
0
],
"items": {
"type": "integer"
}
},
"total": {
"type": "integer",
"example": 89
},
"week": {
"type": "integer",
"example": 1336280400
}
},
"required": [
"days",
"total",
"week"
]
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('reposGetCommitActivityStats', {
# Add required parameters here
})