summaryrefslogtreecommitdiff
path: root/lib/gitlab/chat_commands/deploy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/chat_commands/deploy.rb')
-rw-r--r--lib/gitlab/chat_commands/deploy.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitlab/chat_commands/deploy.rb b/lib/gitlab/chat_commands/deploy.rb
index 6bb854dc080..0f70323810d 100644
--- a/lib/gitlab/chat_commands/deploy.rb
+++ b/lib/gitlab/chat_commands/deploy.rb
@@ -49,8 +49,9 @@ module Gitlab
end
def url(subject)
- polymorphic_url(
- [ subject.project.namespace.becomes(Namespace), subject.project, subject ])
+ project = subject.project
+
+ namespace_project_build_url(project.namespace.becomes(Namespace), project, subject)
end
end
end