https://github.com/wireapp/action-auto-cherry-pick
GitHub Action that automatically cherrypicks merged PRs onto a target branch
https://github.com/wireapp/action-auto-cherry-pick
Last synced: 8 months ago
JSON representation
GitHub Action that automatically cherrypicks merged PRs onto a target branch
- Host: GitHub
- URL: https://github.com/wireapp/action-auto-cherry-pick
- Owner: wireapp
- License: gpl-3.0
- Created: 2024-04-26T14:10:20.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-10T23:17:21.000Z (about 1 year ago)
- Last Synced: 2025-10-11T23:56:09.891Z (8 months ago)
- Language: TypeScript
- Size: 2.11 MB
- Stars: 3
- Watchers: 2
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Automatic cherry-picking
Cherry-picks commits from a merged PR, creating a new PR to a target branch.
Allows setting a name of a submodule and will automatically fast-forward it to
also match the `target-branch`.
Check [action.yml](action.yml) for a description of inputs and outputs.
### Configuration sample
```yaml
name: 'Cherry pick Release/candidate into develop'
on:
pull_request:
branches:
- release/candidate # Branches where the original PRs will be merged
types:
- closed
jobs:
test-cherry-pick:
runs-on: ubuntu-latest
name: Test the cherry-pick action
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive #If you need to operate on submodules
- name: Cherry pick
id: cherry-pick
uses: wireapp/action-auto-cherry-pick@v1.0.2
with:
# Branch which will receive the automatic cherry-picks
target-branch: 'develop'
# If you want the action to fast-forward the submodules to a specific branch
submodules-target-branch: 'develop'
pr-title-suffix: '🍒'
- name: Get the output
run:
echo "The created PR number is ${{
steps.cherry-pick.outputs.pr-number }}"
```