Skip to content

๐Ÿ”™ GitHub Action to backport pull requests

License

Notifications You must be signed in to change notification settings

tibdex/backport

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

54 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Backport is a JavaScript GitHub Action to backport a pull request by simply adding a label to it.

It can backport rebased and merged pull requests with a single commit and squashed and merged pull requests. It thus integrates well with Autosquash.

Usage

  1. ๐Ÿ”Œ Add this .github/workflows/backport.yml to your repository.

  2. ๐Ÿ’ฌ Let's say you want to backport a pull request on a branch named production.

    Then label it with backport production. (See how to create labels.)

  3. โœจ That's it! When the pull request gets merged, it will be backported to the production branch. If the pull request cannot be backported, a comment explaining why will automatically be posted.

Note: multiple backport labels can be added. For example, if a pull request has the labels backport staging and backport production it will be backported to both branches: staging and production.