Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: GitHub - "Open on GitHub" action #238835

Closed
2 tasks done
lszomoru opened this issue Jan 27, 2025 · 0 comments
Closed
2 tasks done

Test: GitHub - "Open on GitHub" action #238835

lszomoru opened this issue Jan 27, 2025 · 0 comments

Comments

@lszomoru
Copy link
Member

lszomoru commented Jan 27, 2025

Refs: #237434, #237813

Complexity: 5

Create Issue


This milestone we have added an "Open on GitHub" action that is being surfaced in various places in the workbench (ex: Timeline context menu/hover, Source Control Graph context menu/hover, Git Blame hover).

Prerequisites

  • Install latest version of VS Code Insiders
  • Enable the following settings:
    • git.blame.editorDecoration.enabled
    • git.blame.statusBarItem.enabled

Commits

  • Open a folder/workspace that contains a git repository hosted on GitHub
  • Open the Source Control view and click the "Sync Changes" button

Timeline

  • Open a file from the workspace and open the Timeline view
  • Ensure that the "Git History" items are shown in the Timeline view
  • Right click on various "Git History" items
    • Confirm that the context menu contains the "Open on GitHub" action
  • Click on the "Open on GitHub" action
  • Hover over various "Git History" items
    • Confirm that the hover contains the "Open on GitHub" action
  • Click on the "Open on GitHub" action in the hover

Source Control Graph

  • Open the "Source Control Graph" view
  • Right click on various history items
    • Confirm that the context menu contains the "Open on GitHub" action
  • Click on the "Open on GitHub" action
  • Hover over various history items
    • Confirm that the hover contains the "Open on GitHub" action
  • Click on the "Open on GitHub" action in the hover

Git Blame

  • Navigate around a file to reveal the git blame editor decoration and status bar item
  • Hover over the editor decoration
    • Confirm that the hover contains the "Open on GitHub" action
  • Click on the "Open on GitHub" action in the hover
  • Hover over the status bar entry
    • Confirm that the hover contains the "Open on GitHub" action
  • Click on the "Open on GitHub" action in the hover

Unpublished Commits

  • Open a folder/workspace that contains a git repository hosted on GitHub
  • Open the Source Control view and click the "Sync Changes" button
  • Open a file, make changes, and create multiple commits that are only available locally

Timeline

  • Open the Timeline view
  • Right click on a commit that is only available locally
  • Click on the "Open on GitHub" action
    • Confirm that you receive a notification that the commit does not exist on GitHub
  • Hover over a commit that is only available locally
    • Confirm that the "Open on GitHub" action is not present

Source Control Graph

  • Open the Source Control Graph view
  • Right click on a history item that is only available locally
  • Click on the "Open on GitHub" action
    • Confirm that you receive a notification that the commit does not exist on GitHub
  • Hover over a history item that is only available locally
  • Click on the "Open on GitHub" action
    • Confirm that you receive a notification that the commit does not exist on GitHub

Git Blame

  • Open the modified file and place the cursor on the line that was modified in the commit that is only available locally
  • Hover over the editor decoration
    • Confirm that the hover does not contain the "Open on GitHub" action
  • Hover over the status bar item
    • Confirm that the hover does not contain the "Open on GitHub" action

Non-GitHub Repository

  • Open a folder/workspace that contains a git repository not hosted on GitHub (you can either open a repository hosted on Azure Repos, or run git init to create a repository that has not been published to a remote)
  • Add a new file, add contents to it, and create a commit
  • Open the Timeline view
    • Confirm that the timeline item context menu does not contain the "Open on GitHub" action
    • Confirm that the timeline item hover does not contain the "Open on GitHub" action
  • Open the Source Control Graph view
    • Confirm that the history item context menu does not contain the "Open on GitHub" action
    • Confirm that the history item hover does not contain the "Open on GitHub" action
  • Open the file, navigate around the file to reveal the git blame editor decoration and status bar item
  • Hover over the editor decoration
    • Confirm that the editor decoration hover does not contain the "Open on GitHub" action
  • Hover over the status bar item
    • Confirm that the status bar item hover does not contain the "Open on GitHub" action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants