CI: Add workflow to remove backport labels on merge into release branches#4562
Conversation
3a7aac3 to
16d720d
Compare
c1f577b to
7180819
Compare
|
We could try this on #4563 if you agree? |
|
I haven't had a chance to review the code yet, so I'll defer to you and Kristoffer, if you're interested in trying this out soon. I will try to review the code at some point (even if it's post-merge). |
Small comment: As long as you're using the default |
|
We kind of want this for any repo that uses the backport app so I wonder if it wouldn't be easier to add the functionality directly to the backport app instead of having it as a GHA? |
|
Ok yeah add as a tool to Backporter and call that in the close and workflow actions |
|
Now uses KristofferC/Backporter#14 which has an example run |
When a backport PR is merged to a release branch, this workflow automatically removes the backport-X.Y label from the original PRs that were cherry-picked, and adds a comment linking to the backport PR. Co-Authored-By: Claude <noreply@anthropic.com>
Manual workflow_dispatch action that scans PRs with backport-X.Y labels and checks if they have already been cherry-picked into the release branch. Defaults to dry run mode to allow review before making changes. Co-Authored-By: Claude <noreply@anthropic.com>
c024359 to
12cd227
Compare
Adds two actions:
Backport Label Cleanup (automatic)
When a backport PR is merged to a release branch, this workflow automatically removes the
backport-X.Ylabel from the original PRs that were cherry-picked, and adds a comment linking to the backport PR and commit.Backport Label Audit (manual)
A
workflow_dispatchaction that can scan all PRs with abackport-X.Ylabel and check whether they have already been cherry-picked into therelease-X.Ybranch. Useful for catching any PRs that were missed. Defaults to dry run mode to allow review before making changes.Both should make it easier to track what has been backported and in which backport PR.