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

actionsGetForkPrContributorApprovalPermissionsRepository

Get fork PR contributor approval permissions for a repository

Details

  • Method: GET
  • Path: /repos/{owner}/{repo}/actions/permissions/fork-pr-contributor-approval
  • Operation ID: actions/get-fork-pr-contributor-approval-permissions-repository

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

{
  "type": "object",
  "properties": {
    "approval_policy": {
      "type": "string",
      "enum": [
        "first_time_contributors_new_to_github",
        "first_time_contributors",
        "all_external_contributors"
      ],
      "description": "The policy that controls when fork PR workflows require approval from a maintainer."
    }
  },
  "required": [
    "approval_policy"
  ]
}

Usage

from ocp_agent import OCPAgent

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

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