Create pull request action in GitHub package

The Create Pull Request action creates a new pull request in a GitHub repository.

Overview

The Create Pull Request action creates a new pull request in a GitHub repository using the source and target branch names. After pull request creation, the action returns the pull request number as the response data.

Note: Ensure that the Connect action is configured before proceeding with the List issues as the Connect action provides the authentication context for the automation session.

Settings

The Create Pull Request action contains the following settings:

Note: All the input fields support string variables. You can create a string variable to hold the appropriate text string and select it in the applicable setting and option.
Session name

Specifies the GitHub session name that the Connect action creates. Use one of the following options to specify the session name:

  • Session name: Enter the session name as text directly or select the string variable that holds the session name text.
  • Variable: Select the GitHub session variable that the Connect action creates.
Owner name
Specifies the name of the GitHub repository owner. The owner can be an organization or a user account..
Repository name
Specifies the name of the GitHub repository in which the action creates the pull request.
Title
Specifies the title of the pull request.
Description (optional)
Specifies the description of the pull request.
Source branch name
Specifies the name of the branch that contains the changes to merge.
Target branch name
Specifies the name of the branch into which the changes must be merged.
Assign output to variable
Specifies the string variable in which the action stores the pull request number.