dotnet / dotnet/sourcelink

Incorrect source URI for GitHub.com and GitHub Enterprise

Open
#160 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.4k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

The source URLs that are generated do not work on GitHub Enterprise.

The correct pattern is
- {scheme}://{github-hostname}/{repo-org}/{repo-name}/raw/{commit-hash}/{file-path}

Sourcelink is placing "raw" in the incorrect part of the path:
- {scheme}://{github-hostname}/raw/{repo-org}/{repo-name}/{commit-hash}/{file-path}

Version tested: 1.0.0-beta-63127-02

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.