Skip to content

Automation: add backport workflow for null-deref fix to 0.81–0.84 stable branches#16103

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/cherry-pick-commit-2269a19
Closed

Automation: add backport workflow for null-deref fix to 0.81–0.84 stable branches#16103
Copilot wants to merge 3 commits intomainfrom
copilot/cherry-pick-commit-2269a19

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 8, 2026

Description

Type of Change

  • Automation (AI changes or Github Actions to reduce effort of manual tasks)

Why

Adds a one-click GitHub Actions workflow to backport the null-dereference fix (2269a198b3d64ff4ed66d16222e4038178eef1cf) to all supporting stable branches (0.81-stable, 0.82-stable, 0.83-stable, 0.84-stable).

Also updates the generic cherry-pick-commit.yml workflow to create a feature branch + PR (instead of pushing directly to the target branch), which is the safer and more reviewable backport pattern.

What

  1. Updated .github/workflows/cherry-pick-commit.yml:

    • Now creates a backport/cherry-pick-<sha>-to-<branch> feature branch from the target stable branch
    • Cherry-picks the requested commit onto the feature branch
    • Pushes the feature branch and opens a PR targeting the stable branch
    • Previously it pushed directly to the target branch (no PR)
  2. Added .github/workflows/backport-fix-null-deref-selectioncontainer.yml:

    • Dedicated one-click workflow_dispatch workflow
    • Uses a matrix strategy to create backport PRs for all 4 stable branches in parallel
    • Hardcoded to cherry-pick 2269a198b3d64ff4ed66d16222e4038178eef1cf (the fix for null dereference in get_SelectionContainer)

How to create the 4 backport PRs

After this PR is merged to main:

  1. Go to Actions → Backport fix for null dereference in get_SelectionContainer (#16091)
  2. Click "Run workflow" → select branch main → click "Run workflow"
  3. The workflow will automatically create 4 PRs:
    • backport/cherry-pick-2269a198b-to-0.81-stable0.81-stable
    • backport/cherry-pick-2269a198b-to-0.82-stable0.82-stable
    • backport/cherry-pick-2269a198b-to-0.83-stable0.83-stable
    • backport/cherry-pick-2269a198b-to-0.84-stable0.84-stable

Screenshots

N/A — CI/automation change only.

Testing

Workflow YAML syntax validated. The workflow uses standard gh pr create and git cherry-pick operations that are well-tested patterns.

Changelog

Should this change be included in the release notes: no

Internal automation improvement — backport workflow now creates reviewable PRs instead of pushing directly to stable branches.

Microsoft Reviewers: Open in CodeFlow

Copilot AI and others added 3 commits May 8, 2026 07:04
… of direct push

Agent-Logs-Url: https://github.com/microsoft/react-native-windows/sessions/a8056eb8-9334-439b-824a-f47c401d37b4

Co-authored-by: vineethkuttan <66076509+vineethkuttan@users.noreply.github.com>
… branches

Agent-Logs-Url: https://github.com/microsoft/react-native-windows/sessions/a8056eb8-9334-439b-824a-f47c401d37b4

Co-authored-by: vineethkuttan <66076509+vineethkuttan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants