summaryrefslogtreecommitdiffstats
path: root/models/commit_status.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/commit_status.go')
-rw-r--r--models/commit_status.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/commit_status.go b/models/commit_status.go
index ecd319c5fe..e864dc3036 100644
--- a/models/commit_status.go
+++ b/models/commit_status.go
@@ -89,7 +89,7 @@ func (status *CommitStatus) loadRepo(e Engine) (err error) {
// APIURL returns the absolute APIURL to this commit-status.
func (status *CommitStatus) APIURL() string {
_ = status.loadRepo(x)
- return fmt.Sprintf("%sapi/v1/%s/statuses/%s",
+ return fmt.Sprintf("%sapi/v1/repos/%s/statuses/%s",
setting.AppURL, status.Repo.FullName(), status.SHA)
}