github_open_pr
Open a GitHub pull request with approval-based access control, validating repository allowlist and preventing auto-close keywords.
Instructions
Open a pull request on GitHub.
Requires a valid ``approval_id``, which is consumed prior to performing
the API call. Raises ``PermissionError`` if the approval ID is missing or
invalid. Delegates to the underlying GitHub API implementation.
Validates that:
1. The upstream repository is in the allowlist
2. The fork owner matches the configured GitHub username
3. The PR body does not contain auto-close keywords (closes, fixes, resolves)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| draft | No | ||
| title | Yes | ||
| approval_id | No | ||
| base_branch | Yes | ||
| head_branch | Yes | ||
| fork_repo_slug | Yes | ||
| upstream_repo_slug | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||