From cc77e2563fe940c8be72613b39e749cb49b0aefc Mon Sep 17 00:00:00 2001 From: Kirilll Zaitsev Date: Tue, 29 Sep 2015 09:18:18 +0300 Subject: [PATCH] Fixes gitlab redirects --- pkg/server/gitlab.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/server/gitlab.go b/pkg/server/gitlab.go index 5f965e861..66d9f29fa 100644 --- a/pkg/server/gitlab.go +++ b/pkg/server/gitlab.go @@ -35,7 +35,7 @@ func RedirectSha(c *gin.Context) { return } - c.Redirect(301, fmt.Sprintf("/%s/%s/%d", repo.Owner, repo.Name, build.ID)) + c.Redirect(301, fmt.Sprintf("/%s/%s/%d", repo.Owner, repo.Name, build.Number)) return } @@ -63,7 +63,7 @@ func RedirectPullRequest(c *gin.Context) { return } - c.Redirect(301, fmt.Sprintf("/%s/%s/%d", repo.Owner, repo.Name, build.ID)) + c.Redirect(301, fmt.Sprintf("/%s/%s/%d", repo.Owner, repo.Name, build.Number)) return }