Open Context Protocol is live! 🚀 Read the launch post
reposDisableDeploymentProtectionRule

reposDisableDeploymentProtectionRule

Disable a custom protection rule for an environment

Details

  • Method: DELETE
  • Path: /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}
  • Operation ID: repos/disable-deployment-protection-rule

Parameters

{
  "environment_name": {
    "description": "The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.",
    "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"
  },
  "owner": {
    "description": "The account owner of the repository. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "protection_rule_id": {
    "description": "The unique identifier of the protection rule.",
    "required": true,
    "location": "path",
    "type": "integer"
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('github')

# Call this tool
result = await agent.call_tool('reposDisableDeploymentProtectionRule', {
    # Add required parameters here
})