actionsSetForkPrContributorApprovalPermissionsRepository
Set fork PR contributor approval permissions for a repository
Details
- Method:
PUT - Path:
/repos/{owner}/{repo}/actions/permissions/fork-pr-contributor-approval - Operation ID:
actions/set-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"
},
"approval_policy": {
"description": "The policy that controls when fork PR workflows require approval from a maintainer.",
"required": true,
"location": "body",
"type": "string",
"enum": [
"first_time_contributors_new_to_github",
"first_time_contributors",
"all_external_contributors"
]
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('actionsSetForkPrContributorApprovalPermissionsRepository', {
# Add required parameters here
})