Skip to content

Commit 1ff9245

Browse files
committed
rename
1 parent 65cac22 commit 1ff9245

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

models/repo/release.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ func (r *Release) APIURL() string {
118118
return r.Repo.APIURL() + "/releases/" + strconv.FormatInt(r.ID, 10)
119119
}
120120

121-
// ZipURL the zip url for a release. release must have attributes loaded
122-
func (r *Release) ZipURL() string {
121+
// APIZipURL the zip api url for a release. release must have attributes loaded
122+
func (r *Release) APIZipURL() string {
123123
return r.Repo.APIURL() + "/archive/" + util.PathEscapeSegments(r.TagName) + ".zip"
124124
}
125125

126-
// TarURL the tar.gz url for a release. release must have attributes loaded
127-
func (r *Release) TarURL() string {
126+
// APITarURL the tar.gz api url for a release. release must have attributes loaded
127+
func (r *Release) APITarURL() string {
128128
return r.Repo.APIURL() + "/archive/" + util.PathEscapeSegments(r.TagName) + ".tar.gz"
129129
}
130130

services/convert/release.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ func ToAPIRelease(ctx context.Context, repo *repo_model.Repository, r *repo_mode
2020
Note: r.Note,
2121
URL: r.APIURL(),
2222
HTMLURL: r.HTMLURL(),
23-
TarURL: r.TarURL(),
24-
ZipURL: r.ZipURL(),
23+
TarURL: r.APITarURL(),
24+
ZipURL: r.APIZipURL(),
2525
UploadURL: r.APIUploadURL(),
2626
IsDraft: r.IsDraft,
2727
IsPrerelease: r.IsPrerelease,

0 commit comments

Comments
 (0)