create-pull-request
Automate pull request creation on GitHub Enterprise by specifying repository details, branch names, and descriptions. Streamline code collaboration and version control workflows.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
base | Yes | Base branch (e.g., 'main') | |
body | No | Pull request description | |
draft | No | Create as draft PR | |
head | Yes | Head branch (e.g., 'username:feature' or just 'feature' for same repo) | |
owner | Yes | Repository owner (user or organization) | |
repo | Yes | Repository name | |
title | Yes | Pull request title |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"base": {
"description": "Base branch (e.g., 'main')",
"type": "string"
},
"body": {
"description": "Pull request description",
"type": "string"
},
"draft": {
"default": false,
"description": "Create as draft PR",
"type": "boolean"
},
"head": {
"description": "Head branch (e.g., 'username:feature' or just 'feature' for same repo)",
"type": "string"
},
"owner": {
"description": "Repository owner (user or organization)",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
},
"title": {
"description": "Pull request title",
"type": "string"
}
},
"required": [
"owner",
"repo",
"title",
"head",
"base"
],
"type": "object"
}