Commit 7f636b13 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix project namespaces for web hooks data

parent 59a86e42
...@@ -192,7 +192,7 @@ class Project < ActiveRecord::Base ...@@ -192,7 +192,7 @@ class Project < ActiveRecord::Base
end end
def web_url def web_url
[Gitlab.config.url, path].join("/") [Gitlab.config.url, path_with_namespace].join("/")
end end
def common_notes def common_notes
......
...@@ -114,7 +114,7 @@ module PushObserver ...@@ -114,7 +114,7 @@ module PushObserver
id: commit.id, id: commit.id,
message: commit.safe_message, message: commit.safe_message,
timestamp: commit.date.xmlschema, timestamp: commit.date.xmlschema,
url: "#{Gitlab.config.url}/#{path}/commit/#{commit.id}", url: "#{Gitlab.config.url}/#{path_with_namespace}/commit/#{commit.id}",
author: { author: {
name: commit.author_name, name: commit.author_name,
email: commit.author_email email: commit.author_email
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment