Skip to content

Change Pull Request Base

Actions
Change the Pull Request Base Branch
v1
Latest
Star (0)

Deprecated

Please use the GitHub CLI for this use case.

- name: Change Base of PR
  run: |
    gh pr edit $PR_NUMBER --repo $REPO --base $BASE_BRANCH
  env:
    REPO: Owner/Repository
    PR_NUMBER: 11
    BASE_BRANCH: new-base-branch
    GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

change-pr-base

This action changes the Pull Request's base branch.

Inputs

repo

Required The repository name with syntax Owner/Repository

pull-number

Required Number of the pull request to change

new-base

Required The name of the branch that shall be changed

token

Required GitHub Token

Example usage

name: Change Base of PR
uses: Surnet/[email protected]
with:
  repo: Owner/Repository
  pull-number: 11
  new-base: new-base-branch
  token: ${{ secrets.GITHUB_TOKEN }}

Change Pull Request Base is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Change the Pull Request Base Branch
v1
Latest

Change Pull Request Base is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.