Uh oh!
There was an error while loading. Please reload this page.
ci: add label-driven backport workflow - #273
Merged
Merged
Conversation
Adds a GitHub Action that cherry-picks a merged PR onto a target maintenance branch when a "backport <branch>" label is present (e.g. "backport main" to carry a fix from develop back to the v1 line). On conflict it comments the manual steps instead of opening a PR, so nothing is silently dropped. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013PntNpMSKA2tkugCR3rupb
Contributor
Greptile SummaryThis PR adds automated, label-driven backports for merged pull requests. The main changes are:
Confidence Score: 5/5This looks safe to merge.
|
| Filename | Overview |
|---|---|
| .github/workflows/backport.yml | Adds the backport workflow, pins its external action, and excludes backport-control labels from generated pull requests. |
Reviews (2): Last reviewed commit: "ci: harden backport workflow" | Re-trigger Greptile
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Pin korthout/backport-action to a commit SHA (v3.4.1) instead of the mutable v3 tag, since the pull_request_target job holds write access. - Exclude the "backport <branch>" label when copying labels so a merged backport PR doesn't re-trigger the workflow. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013PntNpMSKA2tkugCR3rupb
Uh oh!
There was an error while loading. Please reload this page.
harshtandiya added a commit
that referenced
this pull request
Jul 29, 2026
harshtandiya added a commit
that referenced
this pull request
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
.github/workflows/backport.yml, a label-driven GitHub Action (korthout/backport-action) that automates cherry-picking a merged PR onto a maintenance branch.Why
We just cut
1.0.0. Withdevelopas the forward line andmainas the stable v1 line, any v1 fix now has to land in two places. Doing that by hand is easy to forget, so fixes silently miss the release line. This makes the backport one label away.How it works
backport mainlabel to a PR againstdevelop.mainand opens a[Backport main] …PR linking back to the original. Normal CI runs on it.gitsteps on the original PR so nothing is silently dropped.The
label_pattern: '^backport ([^ ]+)$'scales to future lines (backport <branch>) without editing the workflow.Follow-ups (not in this PR)
backport main(and optionallybackport-failed,no-backport).developon squash-merge so each backport is one clean cherry-pick.developto thepushtrigger inci.ymlso the dev line is tested on merge too.🤖 Generated with Claude Code
https://claude.ai/code/session_013PntNpMSKA2tkugCR3rupb
Generated by Claude Code