29 lines
1.1 KiB
YAML
29 lines
1.1 KiB
YAML
{
|
|
"apiVersion": "hub.example.com/v1alpha1",
|
|
"kind": "ToolManifest",
|
|
"metadata": {"name": "Gitea Pull Request Close", "slug": "gitea-pull-request-close"},
|
|
"spec": {
|
|
"canonicalName": "gitea.pullrequest.close",
|
|
"version": "1.14.0",
|
|
"connectorType": "gitea",
|
|
"description": "Close one open pull request only when its exact current head SHA matches.",
|
|
"riskClass": "R2",
|
|
"readOnly": false,
|
|
"idempotent": false,
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"repositoryRef": {"type": "string", "pattern": "^[a-z0-9][a-z0-9-]{0,127}$"},
|
|
"number": {"type": "integer", "minimum": 1, "maximum": 2147483647},
|
|
"expectedHeadSha": {"type": "string", "pattern": "^[0-9a-fA-F]{40,64}$"}
|
|
},
|
|
"required": ["repositoryRef", "number", "expectedHeadSha"]
|
|
},
|
|
"outputSchema": {"type": "object"},
|
|
"limits": {"timeoutMs": 15000, "maxOutputBytes": 262144, "maxItems": 1},
|
|
"redactionProfile": "metadata",
|
|
"requiredScopes": ["project:{project}:write"]
|
|
}
|
|
}
|