Skip to content

update-pr-from-base-branch and pr-base-commit missing on current PR UI #10202

Closed

Description

@smengcl

Description

The Update branch / Rebase controls (update-pr-from-base-branch) and the commits-behind notice (pr-base-commit) do not appear on the current GitHub PR conversation UI.

Expected: on a conflict-free PR whose head branch has diverged from the base, show both branch-update controls and the commits-behind notice.

Actual: the native merge box appears, but those Refined GitHub additions are missing. This still reproduces in the released extension after clearing its cache under Options → Debugging → Clear cache.

Console error from Refined GitHub 26.10:

❌ Refined GitHub: update-pr-from-base-branch
ElementNotFoundError: Expected element not found: [class*="PullRequestHeaderSummary"] a[class^="PullRequestBranchName"],.base-ref

The selectors still depend on old GitHub CSS-module names:

  • The branch helper expects PullRequestHeaderSummary / PullRequestBranchName; the current header uses summaryContainer__… and a[data-component="BranchName"].
  • The update-controls insertion selector expects MergeBoxSectionHeader-module__contentLayout; the current container uses contentLayout__….
  • The commits-behind observer expects MergeBoxSectionHeader-module__wrapper; the current wrapper uses wrapper__… / wrapperLayout__….

On the linked PR, all three original selectors match zero elements. A local selector-only patch restores both features on the live page: Update branch and Rebase render, and the notice reads “It’s 7 commits behind”. No branch update/rebase was executed. The local patch also passes regression tests for the current and previous markup.

Investigated with assistance from Codex.

How to replicate the issue + URL

apache/ozone#11542

  1. Use the released Refined GitHub extension with a token configured and update-pr-from-base-branch / pr-base-commit enabled.
  2. Clear the extension cache in Options → Debugging → Clear cache.
  3. Open the PR conversation above using GitHub’s current PR UI, then reload it and scroll to Merge info / No conflicts with base branch.
  4. Observe that Update branch, Rebase, and the commits-behind notice are missing; inspect the browser console for the selector error above.

At reproduction time the PR is open, mergeable, and its head has diverged from the base (7 commits behind). The exact count will change as the base branch advances.

Extension version

26.10

Browser(s) used

Google Chrome 155.0.8059.80 on macOS

Token ⚠️

  • I set a token in the options page. I understand that some features require a token to work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions