Skip to content

Commit 0ed5a64

Browse files
danielfliratechknowlogick
authored andcommitted
Fix release API URL generation (#8239)
1 parent 3fc42ad commit 0ed5a64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/release.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (r *Release) LoadAttributes() error {
6565

6666
// APIURL the api url for a release. release must have attributes loaded
6767
func (r *Release) APIURL() string {
68-
return fmt.Sprintf("%sapi/v1/%s/releases/%d",
68+
return fmt.Sprintf("%sapi/v1/repos/%s/releases/%d",
6969
setting.AppURL, r.Repo.FullName(), r.ID)
7070
}
7171

0 commit comments

Comments
 (0)