activityGetRepoSubscription
Get a repository subscription
Details
- Method:
GET - Path:
/repos/{owner}/{repo}/subscription - Operation ID:
activity/get-repo-subscription
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": "Repository Invitation",
"description": "Repository invitations let you manage who you collaborate with.",
"type": "object",
"properties": {
"subscribed": {
"description": "Determines if notifications should be received from this repository.",
"type": "boolean",
"example": true
},
"ignored": {
"description": "Determines if all notifications should be blocked from this repository.",
"type": "boolean"
},
"reason": {
"type": "string",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2012-10-06T21:34:12Z"
},
"url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example/subscription"
},
"repository_url": {
"type": "string",
"format": "uri",
"example": "https://api.github.com/repos/octocat/example"
}
},
"required": [
"created_at",
"ignored",
"reason",
"subscribed",
"url",
"repository_url"
]
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('activityGetRepoSubscription', {
# Add required parameters here
})