Skip to content

Commit 9ad4537

Browse files
committed
github-releases: put assets directly under the tag name
1 parent 472f927 commit 9ad4537

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Bugfixes:
44
- Fixed escaping of characters in the file path of GitHub releases.
55

6+
Changes:
7+
- GitHub release assets are now mirrored under its tag name instead of
8+
`releases/download/$tagName/`.
9+
610
# v2.9.0 (2022-05-19)
711

812
New features:

pkg/objects/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func (s *GithubReleaseSource) ListAllFiles(out chan<- FileSpec) *ListEntriesErro
156156

157157
for _, a := range r.Assets {
158158
fs := FileSpec{
159-
Path: fmt.Sprintf("releases/download/%s/%s", tagName, a.GetName()),
159+
Path: fmt.Sprintf("%s/%s", tagName, a.GetName()),
160160
// Technically, DownloadPath is supposed to be a file path but since we
161161
// only need asset ID to download the asset in GetFile() therefore we can
162162
// simply use the asset ID here instead.

0 commit comments

Comments
 (0)