alexander-demicev/Rancher Cherry-Pick Action
Automates backports by creating cherry-pick pull requests for labeled release branches
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GitHub token with contents:write and pull-requests:write permissions. Defaults to the workflow token. | no | ${{ github.token }} |
| label_prefix | Prefix for cherry-pick labels (e.g., "cherry-pick/" matches "cherry-pick/release-v2.8") | no | cherry-pick/ |
| dry_run | If true, skip all git pushes and PR creation (useful for testing) | no | false |
| verbose | Enable verbose logging (overrides log_level to debug) | no | false |
| log_level | Logging level: debug, info, warn, error | no | info |
| log_format | Log output format: text or json | no | text |
| conflict_strategy | Strategy when cherry-pick conflicts occur: "fail" (skip and comment) or "placeholder-pr" (create PR with empty commit) | no | fail |
| target_branches | Comma or newline-separated list of branches to cherry-pick to (overrides label-based detection) | no | "" |
| github_base_url | GitHub Enterprise API base URL (e.g., https://github.example.com/api/v3). Leave empty for github.com. | no | "" |
| github_upload_url | GitHub Enterprise upload URL (e.g., https://github.example.com/api/uploads). Leave empty for github.com. | no | "" |
| git_user_name | Git committer name for placeholder commits. Defaults to "Rancher Cherry-Pick Bot". | no | "" |
| git_user_email | Git committer email for placeholder commits. Defaults to "no-reply@rancher.com". | no | "" |
| git_signing_key | GPG private key (base64-encoded or ASCII-armored) for signing commits. Leave empty to disable signing. | no | "" |
| git_signing_passphrase | Passphrase to unlock the GPG signing key (if required) | no | "" |
| require_org_membership | If true, skip execution when GITHUB_ACTOR is not a member of the repository owner organization | no | false |
Outputs
| name | description |
|---|---|
| created_prs | JSON array of created cherry-pick pull request URLs |
| skipped_targets | JSON array of target branches that were skipped with reasons |