Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
/ change-pr-base Public archive

Github Action Change PR Base of existing Pull Request

Notifications You must be signed in to change notification settings

Surnet/change-pr-base

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/change-pr-base@v1.0
with:
  repo: Owner/Repository
  pull-number: 11
  new-base: new-base-branch
  token: ${{ secrets.GITHUB_TOKEN }}

About

Github Action Change PR Base of existing Pull Request

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published