publish_merge_request
Publish a GitHub Pull Request or GitLab Merge Request with a title and body. Auto-detects the platform from the remote URL and uses environment tokens for authentication.
Instructions
Publish a Pull Request (GitHub) or Merge Request (GitLab) with the given title and body. The platform is auto-detected from the git remote URL. Auth tokens are read from environment variables: GITHUB_TOKEN or GITLAB_TOKEN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Working directory — must be inside a git repository | |
| base | No | Target branch. Defaults to the repository's default branch. | |
| body | Yes | Body / description of the PR/MR | |
| draft | No | Whether to create the PR/MR as a draft | |
| title | Yes | Title of the PR/MR |