Skip to content
git-pull-request

GitHub Action

Auto Rebase PRs

v0.1.0 Pre-release

Auto Rebase PRs

git-pull-request

Auto Rebase PRs

Automatic rebasing when a base branch changes, for efficient PR flows

Installation

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

              

- name: Auto Rebase PRs

uses: jimbloemkolk/[email protected]

Learn more about this action in jimbloemkolk/auto-rebase

Choose a version

Auto Rebase

This action rebases all open PR's when the base branch in updated.

Inputs

github_token

Required Github token for the repository

filter

auto-merge default Only rebase PR's set automatically merge when all requirements are met

always Rebase all PR's to the current branch

Example usage

on:
  push:
    branches:
      - main

jobs:
  rebase:
    runs-on: ubuntu-latest
    steps:
      - uses: jimbloemkolk/[email protected]
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}