Skip to content

[Bug]: PR Base is from wrong branch #129

Description

@jasonvarga

Platform

macOS

Operating system version

macOS Tahoe 26.3.1 (a)

System architecture

ARM64 (M1, M2, etc)

PolyScope Version

0.16.0

Bug description

Adding a workspace via a pull request that doesn't target the default branch will assume the default base branch.

  • The "Base" diff in the sidebar is from the wrong base
  • The "Pull latest from base" from the command palette tries to pull the repo's default base branch, not the PR's base branch.
Image

Possibly related to #126

Steps to reproduce

  • Have a PR that targets a non-default branch. (e.g. If the 6.x branch is the default, the PR should target 5.x)
  • Create workspace "From pull request"
  • The "Base" diff in the sidebar shows a diff against 6.x

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions