Skip to content

Commit

Permalink
Fix release API URL generation (#8234)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielflira authored and techknowlogick committed Sep 19, 2019
1 parent 3c0e6d1 commit 09e452f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (r *Release) LoadAttributes() error {

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

Expand Down

0 comments on commit 09e452f

Please sign in to comment.