Skip to content

Support cherry-pick label on already-merged PRs via issues:labeled trigger - #45

Merged
bunnam988 merged 1 commit into
rdkcentral:developfrom
bunnam988:fix/cherry-pick-issues-labeled-trigger
Aug 7, 2026
Merged

Support cherry-pick label on already-merged PRs via issues:labeled trigger#45
bunnam988 merged 1 commit into
rdkcentral:developfrom
bunnam988:fix/cherry-pick-issues-labeled-trigger

Conversation

@bunnam988

Copy link
Copy Markdown
Contributor

Follow-up to #43. Adds issues: labeled as a second trigger so adding a cherry-pick to <branch> label to an already-merged PR fires the cherry-pick engine.

Depends on rdkcentral/build_tools_workflows#72 being merged first.

Reason for change: Enable cherry-pick labels to be added at any time after merge
Test Procedure: Add label to already-merged PR #39 — workflow fires and creates backport PR
Risks: Low
Priority: P1

@bunnam988
bunnam988 requested review from a team as code owners August 7, 2026 08:41
Copilot AI review requested due to automatic review settings August 7, 2026 08:41
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

📋 PR Format Reminder

  • Title: Support cherry-pick label on already-merged PRs via issues:labeled trigger — expected TICKET-123 : description
    (Multiple tickets OK: RDKCOM-5492 RDKBDEV-3336 : ... | Include US ticket + subtask for user-stories)

Expected:

TICKET-123 : brief description

Reason for change: why
Test Procedure: how to verify
Risks: Low / Medium / High
Priority: P0 / P1 / P2

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the automated cherry-pick workflow so that adding a cherry-pick to <branch> label to an already-merged PR can still trigger the backport engine by listening to the issues: labeled event in addition to pull_request.

Changes:

  • Adds an issues: labeled trigger to catch label additions on already-merged PRs.
  • Updates the job-level if: condition to handle both pull_request and issues event payloads.
  • Passes raw_labels and a pr_number_override appropriate to the triggering event type.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +15 to +17
(github.event_name == 'issues' &&
github.event.issue.pull_request.url != '' &&
contains(toJSON(github.event.issue.labels.*.name), 'cherry-pick to '))
@bunnam988
bunnam988 merged commit dfa65e1 into rdkcentral:develop Aug 7, 2026
7 of 8 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants