Skip to content

fix(ci): prevent backport update job from failing on every PR#2898

Closed
Saadnajmi wants to merge 5 commits intomicrosoft:mainfrom
Saadnajmi:fix-backport-workflow-always-firing
Closed

fix(ci): prevent backport update job from failing on every PR#2898
Saadnajmi wants to merge 5 commits intomicrosoft:mainfrom
Saadnajmi:fix-backport-workflow-always-firing

Conversation

@Saadnajmi
Copy link
Copy Markdown
Collaborator

Summary

  • Reorders steps in the update-backport job so the backport PR lookup runs first using the default github.token
  • GitHub App token generation and all subsequent steps are now gated behind found == 'true', so they're skipped when no backport PRs exist
  • Prevents the workflow from showing a red ✗ on every PR push to main

Test plan

  • Push a commit to a PR targeting main — the "Update backport PRs" job should pass (with steps skipped)
  • Comment /backport <branch> on a PR — the "Create backport" job should still work as before

🤖 Generated with Claude Code

Saadnajmi and others added 5 commits April 2, 2026 13:42
Implements onAuxClick following the same pattern as onDoubleClick, wired
end-to-end from native rightMouseUp: through C++ event emitters to JS.
Also adds a `button` field to MouseEvent and filters non-primary button
clicks from triggering onPress in Pressability.

Inspired by microsoft/react-native-windows#15920.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Port the shared changes from facebook#56298:
- Add onAuxClick/onAuxClickCapture to TouchEventEmitter (shared C++)
- Add AuxClick/AuxClickCapture to ViewEvents in primitives.h
- Add prop conversions in propsConversions.h
- Register topAuxClick as a bubbling event in BaseViewConfig.ios.js
- Add dispatch logic in RCTSurfacePointerHandler.mm (iOS path)
- Type onAuxClick as PointerEvent in PointerEventProps (Flow + TS)

Remove redundant macOS-specific JS registrations since macOS now
inherits the bubbling event from the iOS base config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Match react-native-windows approach: add _isDefaultPressButton() helper
and use it in all three press paths (onClick, LONG_PRESS_DETECTED, and
RESPONDER_RELEASE). The button property is already forwarded from native
macOS touch events via BaseTouch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add MouseClickEventsExample to ViewExample.js with both a plain View
  and a Pressable target to verify onAuxClick fires and onPress does not
  on right-click
- Document onAuxClick in docsite view-events.md with event data spec
  and usage example
- Add button property to onDoubleClick event data docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move the GitHub App token generation step after the backport PR lookup
in the update-backport job. The lookup now uses the default github.token
(which always works) and all subsequent steps are skipped when no
backport PRs exist. This prevents the job from failing on every PR push
due to token generation errors when there's nothing to update.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 8, 2026

⚠️ No Changeset found

Latest commit: 8e1eeb8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Saadnajmi Saadnajmi closed this Apr 8, 2026
@Saadnajmi Saadnajmi deleted the fix-backport-workflow-always-firing branch April 8, 2026 21:10
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.

1 participant