Skip to content

Supporting non-public and non-GitHub repositories #468

@kgryte

Description

@kgryte

Description

Upon clicking the file icon in the Git history panel for a single file, the extension attempts to open a public GitHub URL.

Such behavior is likely not desirable when a repository is not hosted or, if hosted, not hosted on GitHub.

Reproduce

  1. Open JupyterLab with the Git extension installed.
  2. Click on the Git extension icon.
  3. Click on the history tab.
  4. Scroll down to a past commit.
  5. Click on the commit.
  6. Double click the file icon next to a changed file.

Expected behavior

I'm not sure the optimal behavior here. For internal usage, opening a GitHub URL is not applicable. Maybe this could be configured?

Or potentially down the road, one may want to open the file directly within JupyterLab to see the diff for that file in that commit. In fact, maybe this should be the default behavior?

This would, I presume, require diffing of plain text files (see #406).

Context

  • Python package version: 0.9.0
  • Extension version: 0.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions