jschmid1/Cross Repo Cherrypick Action
Cherry pick commits of pull requests to target branches of a remote resoitory.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | Token to authenticate requests to GitHub. Used to create and label pull requests and to comment. Either GITHUB_TOKEN or a repo-scoped Personal Access Token (PAT). | — | ${{ github.token }} |
| github_workspace | Working directory for the cherry-pick action. | — | ${{ github.workspace }} |
| label_pattern | Regex pattern to match the cherry-pick labels on the merged pull request. Must contain a capture group for the target branch. The action will cherry-pick the pull request to each matched target branch. Note that the pull request's headref is excluded automatically. | — | ^cherry-pick ([^ ]+)$ |
| merge_commits | Specifies how the action should deal with merge commits on the merged pull request. When set to `fail` the cherry-pick fails when the action detects one or more merge commits. When set to `skip` the action only cherry-picks non-merge commits, i.e. it ignores merge commits. | — | fail |
| pull_description | Template used as description (i.e. body) in the pull requests created by this action. Placeholders can be used to define variable values. These are indicated by a dollar sign and curly braces (`${placeholder}`). Please refer to this action's README for all available placeholders. | — | # Description cherry-pick of #${pull_number} to `${target_branch}`. |
| pull_title | Template used as the title in the pull requests created by this action. Placeholders can be used to define variable values. These are indicated by a dollar sign and curly braces (`${placeholder}`). Please refer to this action's README for all available placeholders. | — | [cherry-pick ${target_branch}] ${pull_title} |
| upstream_repo | The repository to cherry-pick to. Use format `owner/repo` | — | — |
| branch_map | A json-formatted mapping of target branches to upstream branches in case they are different. | — | {} |
| trigger_label | The label that triggers the cherry-pick action. If the merged pull request has this label, the action will cherry-pick it. If the merged pull request does not have this label, the action will do nothing. | — | cherry-pick to remote |
Outputs
| name | description |
|---|---|
| was_successful | Whether or not the changes could be cherry-picked successfully to all targets. Either 'true' or 'false'. |
| was_successful_by_target | Whether or not the changes could be cherry-picked successfully to all targets - broken down by target. Follows the pattern '{{label}}=true|false'. |