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

actionsGetForkPrContributorApprovalPermissionsRepository

Get fork PR contributor approval permissions for a repository

GET /repos/{owner}/{repo}/actions/permissions/fork-pr-contributor-approval HTTP/1.1

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