yhabteab/Backbot - Automatic PR Backporter
A GitHub Action to automatically backport pull requests to specified target branches based on labels.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GitHub token with permissions to create branches, pull requests, and comments. Typically, this is set to "github.token". | yes | — |
| committer | A GitHub username or bot name to use as the committer of the cherry-picked commits. | yes | github-actions[bot] |
| committer_email | Email address associated with the committer. | yes | github-actions[bot]@users.noreply.github.com |
| pr_title | Title for the backport pull request (default: "[Backport ${target_branch}] ${original_pr_title}"). | yes | [Backport ${target_branch}] ${original_pr_title} |
| pr_description | Description for the backport pull request (default: "Backport of #${original_pr_number} to ${target_branch}"). | yes | Backport of #${original_pr_number} to ${target_branch}, triggered by a label. --- This is an automated backport PR. Please review it carefully before merging. |
| label_pattern | Regex pattern to match labels for determining target branches (default: "^backport-to-(support\/\d+\.\d+)$"). | yes | ^backport-to-(support\/\d+\.\d+)$ |
| copy_labels_pattern | Regex pattern to match labels for copying from the original PR to the backport PR (default empty). | — | — |
| conflict_handling | Conflict resolution strategy: "abort" (default) or "draft" to create a draft PR on conflict. | yes | abort |
| merge_commit_handling | Handles merge commits encountered as part of the original PR commit history. Options are "skip" (default), "abort", or any other value to include them. | yes | skip |
Outputs
no outputs