reposCreateDispatchEvent
Create a repository dispatch event
Details
- Method:
POST - Path:
/repos/{owner}/{repo}/dispatches - Operation ID:
repos/create-dispatch-event
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"
},
"event_type": {
"description": "A custom webhook event name. Must be 100 characters or fewer.",
"required": true,
"location": "body",
"type": "string"
},
"client_payload": {
"description": "JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB.",
"required": false,
"location": "body",
"type": "object"
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('reposCreateDispatchEvent', {
# Add required parameters here
})