Skip to content

Github Action to cherry-pick any PR to a separate branch and create a new PR to given one.

License

Notifications You must be signed in to change notification settings

tarfin-labs/cherry-pick-github-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action to Cherry-Pick PRs to a Target Branch

Github Action to cherry-pick any PR to a separate branch and create a new PR to the target branch.

This project was inspired by vendoo/gha-cherry-pick.

Installation

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

name: Cherry Pick On Comment
on:
  issue_comment:
    types: [created]

jobs:
  cherry-pick:
    name: Cherry Pick
    if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/cherry-pick')
    runs-on: ubuntu-latest
    steps:
      - name: Checkout the latest code
        uses: actions/checkout@v2
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          fetch-depth: 0
      - name: Cherry Pick Action
        uses: tarfin-labs/cherry-pick-github-action@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

After installation simply add a comment /cherry-pick <target_branch> to the PR you wish to cherry-pick to trigger the action.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Github Action to cherry-pick any PR to a separate branch and create a new PR to given one.

Resources

License

Stars

Watchers

Forks

Packages

No packages published