Skip to content
corner-left-down

GitHub Action

Pull request backport via label

v1 Latest version

Pull request backport via label

corner-left-down

Pull request backport via label

Backport pull request based on backport label

Installation

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

              

- name: Pull request backport via label

uses: syndesisio/backport-action@v1

Learn more about this action in syndesisio/backport-action

Choose a version

backport-action

GitHub Action to backport pull requests.

Put this in your .github/workflows/backport.yml:

name: Backport

on:
  pull_request:
    types:
      - closed
      - labeled

jobs:
  backport:
    runs-on: ubuntu-latest
    name: Backport closed pull request
    steps:
    - uses: syndesisio/backport-action@v1

And for each pull request that needs to be backported to branch <branch> add a backport <branch> label on the pull request.