Skip to content

Commit

Permalink
Fix invalid url generated for homebrew downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Mar 7, 2022
1 parent 23ed06f commit 40586f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DotNetReleaser.Tests/MockDevHosting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public string GetCompareUrl(string user, string repo, string fromRef, string toR

public string GetDownloadReleaseUrl(string version, string fileEntry)
{
return $"{Configuration.Base}/releases/download/{Configuration.VersionPrefix}{version}/{Path.GetFileName(fileEntry)}";
return $"{Configuration.Base}/{Configuration.User}/{Configuration.Repo}/releases/download/{Configuration.VersionPrefix}{version}/{Path.GetFileName(fileEntry)}";
}

public Task<List<string>> GetBranchNamesForCommit(string user, string repo, string sha)
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet-releaser/DevHosting/GitHubDevHosting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ public string GetCompareUrl(string user, string repo, string fromRef, string toR

public string GetDownloadReleaseUrl(string version, string fileEntry)
{
return $"{Configuration.Base}/releases/download/{Configuration.VersionPrefix}{version}/{Path.GetFileName(fileEntry)}";
return $"{Configuration.Base}/{Configuration.User}/{Configuration.Repo}/releases/download/{Configuration.VersionPrefix}{version}/{Path.GetFileName(fileEntry)}";
}

public async Task<List<string>> GetBranchNamesForCommit(string user, string repo, string sha)
Expand Down

0 comments on commit 40586f7

Please sign in to comment.