Repository navigation
Conversation
Co-authored-by: Zach Moroni <[email protected]>
7 tasks done
rf-figma
approved these changes
Aug 20, 2026
jkleinsc
approved these changes
Aug 21, 2026
ckerr
approved these changes
Aug 21, 2026
|
Release Notes Persisted
|
jkleinsc
deleted the
trop/44-x-y-bp-feat-add-webcontents-caretbrowsingenabled-1787184354760
branch
August 24, 2026 13:59
dsanders11
pushed a commit
to electron/trop
that referenced
this pull request
Aug 25, 2026
…ting them (#423) * fix: supersede completed backport approval check runs instead of updating them The Checks API treats a completed check run as terminal: a PATCH asking to move it back to 'queued' succeeds and applies the output, but silently keeps the old status and conclusion. The dedupe path added in #422 therefore could not un-green a run that had already concluded success - the labeled-event reset only rewrote the output text, leaving a green check whose output read 'Needs Backport Approval' (observed on electron/electron#53035). - queueBackportApprovalCheck now only updates an existing run in place while it is still pending; a completed run is superseded by a fresh queued run, which branch protection consults as the latest run per name. - The opened-event evaluation no longer concludes 'not required' for backport PRs authored by trop itself: trop adds labels in a separate API call shortly after creating the PR, so the live labels are still empty in that window. The check stays queued until the labeled events that follow trop's own label writes settle the verdict. * fix: keep opened backport approval check pending for all declared backports The opened-event guard special-cased backports authored by trop's bot user, but the window it protects against is not author-specific: a declared backport's labels are always written by trop itself - backportImpl labels trop-created backports in a separate API call after opening them, and updateManualBackport labels manually-opened backports with at least the base-ref label - so labels can land after the opened delivery for any author, and webhook deliveries can be delayed or reordered besides. Gate the guard on the author-agnostic property that actually matters: whether the PR body declares 'Backport of #N'. Every declared backport is guaranteed at least one trop-written label and therefore a labeled event that settles the verdict, so opened can safely leave the check pending. PRs without a declaration (e.g. fast-track PRs targeting release branches) get no guaranteed labeled event and would hang queued forever, so opened still concludes 'not required' for them. Also skip the re-queue when the check has already concluded: a labeled delivery processed before a late opened delivery has already settled the verdict from the same live labels, and superseding that concluded run would leave a queued check no follow-up event ever completes. --------- Co-authored-by: Claude <[email protected]>
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 free
to 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.
Backport of #52696
See that PR for details.
Notes: Added webContents.caretBrowsingEnabled for toggling caret browsing in a WebContents.