summaryrefslogtreecommitdiff
path: root/app/models/gitlab_ci_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/gitlab_ci_service.rb')
-rw-r--r--app/models/gitlab_ci_service.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/gitlab_ci_service.rb b/app/models/gitlab_ci_service.rb
index 0bce425fdab..24b70323098 100644
--- a/app/models/gitlab_ci_service.rb
+++ b/app/models/gitlab_ci_service.rb
@@ -32,4 +32,8 @@ class GitlabCiService < Service
hook.url = [project_url, "/build", "?token=#{token}"].join("")
hook.save
end
+
+ def commit_badge_path sha
+ project_url + "/status?sha=#{sha}"
+ end
end