Create pull request
project_pr_createOpen a pull request or merge request for the current or specified branch on GitHub, GitLab, or Bitbucket.
Instructions
Open a pull request for the current branch (or an explicit head/base). Works with GitHub, GitLab and Bitbucket; repo/token/provider are resolved per call. Use when: the change is committed and pushed, and the user asks to open a PR/MR. Default base is the repo's default branch. Avoid when: the branch is not pushed yet (push first), or a PR for this branch already exists (use project_pr_comment). Speed: one provider API call (~1 network round trip, 2 if the default branch is not cached). Output: pr_create: repo, provider, number, url, title, state, draft, head, base, created. Batch-safe: no
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Target branch (default: the repository default branch). | |
| body | No | PR description (markdown); usually a summary + test plan. | |
| head | No | Source branch (default: the current branch). | |
| repo | No | Repository as "owner/name" or a PR URL (default: VENIRA_GIT_REPO, git.repo in venira.config.json, else the workspace .git origin remote). | |
| draft | No | Open as a draft PR. | |
| title | Yes | PR title (imperative, one line). | |
| reason | No | Why this change is made (e.g. "sua loi null pointer o dong 45"). Recorded in the audit trail so later sessions know the intent. Single line, max 400 chars, secrets are redacted. | |
| provider | No | Provider override for this call (default: VENIRA_GIT_PROVIDER, then venira.config.json, then inferred from the origin remote). |