Create Pull Request

Create a new pull request in GitHub.

Options

Field Definition Type Required
Organization A list of available organizations in GitHub. Dropdown TRUE
Repository Repository that contains the new pull request. Dropdown TRUE
Link to an Issue? Indicates whether to link to an issue. Dropdown TRUE
From a Fork? Indicates whether you are working with forks and creating pull requests between them. If Yes, Fork Owner is added as an input field. Dropdown TRUE

Input

Field Definition Type Required
Pull Request
Issue Number Number of the issue that's associated with the new pull request (field appears if Yes is selected in Link to an Issue dropdown). Number FALSE
BASE Branch Base branch of the new pull request. String TRUE
Fork Owner Owner (value from Username or Organization) of the fork where the new pull request is located (field appears if Yes is selected in From a Fork? dropdown). String TRUE
HEAD Branch Head branch of the new pull request (field appears if Yes is selected in From a Fork? dropdown). String TRUE
Is Draft? If true, the new pull request is a draft. Boolean FALSE

Output

Field Definition Type
Pull Request Number URL of the new pull request's URL. String
Pull Request ID ID of the new pull request. Number
Pull Request Node ID Node ID of the new pull request. String
Title Title of the new pull request. String
State State of the new pull request. String
Description Description of the new pull request. String
Author Association Relationship of the author to the subject of the comment. String
Username Login of the user who raised the new pull request. String
User Node ID Node ID of the user. String
User ID ID of the user who raised the issue. String
Assignee Username Login of the user to whom the new pull request is assigned. String
Assignee Node ID Node ID of the assignee. String
Assignees Users to whom the new pull request is assigned. Object
Labels List of labels associated with the new pull request. Object
Milestone Title Title of the milestone associated with the new pull request. String
Milestone ID Unique identifier for the milestone with which the new pull request is associated. String
Milestone Node ID Node ID of the milestone with which the new pull request is associated. String
Milestone Number Milestone number milestone with which the new pull request is associated. Number
Assignee ID Unique identifier of the assignee. String
BASE Branch Base branch of the new pull request. String
HEAD Branch Head branch of the new pull request. String
Diff URL A URL that contains a diff for the new pull request. String
HTML URL A URL that contains a human-readable HTML version of the new pull request. String
Patch URL A URL that contains a patch for the new pull request. String
Created At Time the new pull request was created. Date & Time
Updated At Time the new pull request was last updated. Date & Time
Maintainer Can Modify? If true, the upstream maintainers can modify the new pull request. Boolean
Is Locked? If true, the new pull request is locked. Boolean
Is Draft? If true, the new pull request is a draft. Boolean
Additions Count Number of additions included in the new pull request. Number
Deletions Count Number of deletions included in the new pull request. Number
Changed Files Count Number of files changed by the new pull request. Number
Commits Count Number of commits included in the new pull request. Number

Related topics

GitHub connector

About the elements of Okta Workflows

GitHub API documentation