Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
git-pull-request

GitHub Action

Automatic Rebase

1.1

Automatic Rebase

git-pull-request

Automatic Rebase

Automatically rebases PR on '/rebase' comment

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Automatic Rebase

uses: cirrus-actions/rebase@1.1

Learn more about this action in cirrus-actions/rebase

Choose a version

GitHub action to automatically rebase PRs

Build Status

After installation simply comment /rebase to trigger the action:

rebase-action

Installation

To configure the action simply add the following lines to your .github/workflows/rebase.yml workflow file:

on: issue_comment
name: Automatic Rebase
jobs:
  rebase:
    name: Rebase
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Automatic Rebase
      uses: cirrus-actions/rebase@1.0
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}