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 The 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 The base branch of the new pull request. String TRUE
Fork Owner The 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 The 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 The new pull request's URL. String
Pull Request ID The ID of the new pull request. Number
Pull Request Node ID The node ID of the new pull request. String
Title The title of the new pull request. String
State The state of the new pull request. String
Description The description of the new pull request. String
Author Association The relationship of the author to the subject of the comment. String
Username The login of the user who raised the new pull request. String
User Node ID The node ID of the user. String
User ID The ID of the user who raised the issue. String
Assignee Username The login of the user to whom the new pull request is assigned. String
Assignee Node ID The node ID of the assignee. String
Assignees The users to whom the new pull request is assigned. Object
Labels The list of labels associated with the new pull request. Object
Milestone Title The title of the milestone associated with the new pull request. String
Milestone ID The unique identifier for the milestone that the new pull request is associated with. String
Milestone Node ID The node ID of the milestone that the new pull request is associated with. String
Milestone Number The milestone number milestone that the new pull request is associated with. Number
Assignee ID The unique identifier of the assignee. String
BASE Branch The base branch of the new pull request. String
HEAD Branch The 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 The time the new pull request was created. Date & Time
Updated At The 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 The number of additions included in the new pull request. Number
Deletions Count The number of deletions included in the new pull request. Number
Changed Files Count The number of files changed by the new pull request. Number
Commits Count The number of commits included in the new pull request. Number

Related topics

GitHub connector

About the elements of Okta Workflows

GitHub API documentation