Skip to content

pr-base-commit doesn't show the most recent common commit (should it?) #6573

Closed

Description

@fregante

Description

Originally posted in #6538 (review)

What should we do? Since the PR was not rebased, maybe it makes sense that the "base commit" is the original, but it's not consistent with the rest of the UI: the "base commit" is not just "1 commit behind"


Step 4: commit on main ⚠️

  • The UI correctly detects it's 1 commit behind ✅
  • The 1 commit page shows exactly 1 commit ✅
  • The base commit is "wrong" (it's the same as before) ❌

Screenshot 25

How to replicate the issue + URL

refined-github/sandbox#68

Extension version

23.4.26

Browser(s) used

Chrome

Related

Activity

  1. fregante commented on Aug 1, 2023

    @fregante
    MemberAuthor

    I think it should use merge_base_commit

    return response.merge_base_commit.sha; // #4679

  2. 134130 commented on Sep 9, 2023

    @134130
    Contributor

    How about updating the name base commit?
    I think it will be confused when click 1 commit link and if there is no related with presented commit sha.
    Maybe suggestion:

    It’s 22 commits behind from commit abcd123
    
  3. fregante commented on Sep 9, 2023

    @fregante
    MemberAuthor

    I'm not sure I follow. Why would there be no commits? If that's the case, it's the wrong link/commit (as described by this issue, presumably)

  4. 134130 commented on Sep 9, 2023

    @134130
    Contributor

    Aha, You are meaning "since the commit is merged (not rebased), the base commit is not changed".

    The title is This branch has bo conflicts with the base branch, So I thought sub content means comparing with the base branch's HEAD commit between the pr's latest merged commit

  5. fregante commented on Apr 25, 2026

    @fregante
    MemberAuthor

    Nobody complained/reported an issue in 3 years. The feature works well enough.

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