actionsSetPrivateRepoForkPrWorkflowsSettingsRepository
Set private repo fork PR workflow settings for a repository
Details
- Method:
PUT - Path:
/repos/{owner}/{repo}/actions/permissions/fork-pr-workflows-private-repos - Operation ID:
actions/set-private-repo-fork-pr-workflows-settings-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"
},
"run_workflows_from_fork_pull_requests": {
"description": "Whether workflows triggered by pull requests from forks are allowed to run on private repositories.",
"required": true,
"location": "body",
"type": "boolean"
},
"send_write_tokens_to_workflows": {
"description": "Whether GitHub Actions can create pull requests or submit approving pull request reviews from a workflow triggered by a fork pull request.",
"required": false,
"location": "body",
"type": "boolean"
},
"send_secrets_and_variables": {
"description": "Whether to make secrets and variables available to workflows triggered by pull requests from forks.",
"required": false,
"location": "body",
"type": "boolean"
},
"require_approval_for_fork_pr_workflows": {
"description": "Whether workflows triggered by pull requests from forks require approval from a repository administrator to run.",
"required": false,
"location": "body",
"type": "boolean"
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('actionsSetPrivateRepoForkPrWorkflowsSettingsRepository', {
# Add required parameters here
})