reposCancelPagesDeployment
Cancel a GitHub Pages deployment
Details
- Method:
POST - Path:
/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel - Operation ID:
repos/cancel-pages-deployment
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"
},
"pages_deployment_id": {
"description": "The ID of the Pages deployment. You can also give the commit SHA of the deployment.",
"required": true,
"location": "path",
"type": "string"
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('reposCancelPagesDeployment', {
# Add required parameters here
})