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.0

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/[email protected]

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

Limitations

Due to current limitations of GitHub Actions:

GitHub Actions is limited to private repositories and push events in public repositories during the limited public beta.

Rebase action currently only works on private repositories since it requires IssueCommentEvent event.

Installation

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

workflow "Automatic Rebase" {
  on = "issue_comment"
  resolves = "Rebase"
}

action "Rebase" {
  uses = "docker://cirrusactions/rebase:latest"
  secrets = ["GITHUB_TOKEN"]
}