Merge pull request action in GitHub package
- Updated: 2026/05/13
Merge pull request action in GitHub package
The Merge Pull Request action merges an open pull request into the target branch of the GitHub repository and returns the merge status in the response.
Overview
The Merge Pull Request action merges an open pull request into the target branch of a GitHub repository using the pull request number. You can specify the merge type, commit title and commit message for the merge commit.
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 Merge 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 settings.
- 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 merges the pull request.
- Pull request number
- Specifies the pull request number to merge.
- Merge Type
- Specifies the merge method for the pull request. Select one of the following
options:
- Merge: Select to merge all commits from the source branch into the target branch and create a merge commit.
- Squash: Select to combine all commits from the source branch into a single commit before merging into the target branch.
- Rebase: Select to commit each pull request individually from the source branch onto the target branch without creating a merge commit.
- Commit title (optional)
- Specifies the title of the commit. You can either enter the commit title directly as text or select the applicable string variable.
- Commit message (optional)
- Specifies the body text of the commit. You can either enter the commit message directly as text or select the applicable string variable.
- Assign output to variable
- Specifies the boolean variable in which the action stores the status of the merge
request. The action returns the status
truefor successful merge andfalseif the merge fails.