8000 Probing for the enterprise server by dhoehna · Pull Request #375 · microsoft/devhomegithubextension · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Probing for the enterprise server#375

Merged
dhoehna merged 1 commit intomainfrom
user/dhoehna/MakingBetterUrlValidation
Apr 9, 2024
Merged

Probing for the enterprise server#375
dhoehna merged 1 commit intomainfrom
user/dhoehna/MakingBetterUrlValidation

Conversation

@dhoehna
Copy link
Contributor
@dhoehna dhoehna commented Apr 8, 2024

Summary of the pull request

The extension gives a false positive if a non-GitHub Url with 3 segments is put into the URL text box. This is because of the || condition. How the extension checks if the github URL is valid is

  1. Is the host not either www.github.com or github.com and is the segment count < 3
  2. Is the segment count less than 3 (For enterprise servers)

A bitbucket URL would give false positive because check 1 returns false and check 2 returns true. ||'s these together and the result is true.

Added an additional check to make sure the server can be probed.

References and relevant issues

Detailed description of the pull request / Additional comments

Validation steps performed

Manually ran.

Task: https://task.ms/49116620

PR checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated

Movies!
Before the fix!
BitBucketBeforeFix

After the fix!
BitBucketAfterFix

@krschau krschau added this to the DHGE v0.13 milestone Apr 9, 2024
@dhoehna dhoehna merged commit 8871c3e into main Apr 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0