issuesLock
Lock an issue
Details
- Method:
PUT - Path:
/repos/{owner}/{repo}/issues/{issue_number}/lock - Operation ID:
issues/lock
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"
},
"issue_number": {
"description": "The number that identifies the issue.",
"required": true,
"location": "path",
"type": "integer"
},
"lock_reason": {
"description": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n * `off-topic` \n * `too heated` \n * `resolved` \n * `spam`",
"required": false,
"location": "body",
"type": "string",
"enum": [
"off-topic",
"too heated",
"resolved",
"spam"
]
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('issuesLock', {
# Add required parameters here
})