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

reposCheckImmutableReleases

Check if immutable releases are enabled for a repository

Details

  • Method: GET
  • Path: /repos/{owner}/{repo}/immutable-releases
  • Operation ID: repos/check-immutable-releases

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"
  }
}

Response Schema

{
  "title": "Check immutable releases",
  "description": "Check immutable releases",
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "example": true,
      "description": "Whether immutable releases are enabled for the repository."
    },
    "enforced_by_owner": {
      "type": "boolean",
      "example": false,
      "description": "Whether immutable releases are enforced by the repository owner."
    }
  },
  "required": [
    "enabled",
    "enforced_by_owner"
  ]
}

Usage

from ocp_agent import OCPAgent

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

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