Commit 3ff131a7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve web hook data. Use clonable url in repo info

parent 0af5884b
...@@ -98,7 +98,7 @@ module PushObserver ...@@ -98,7 +98,7 @@ module PushObserver
user_name: user.name, user_name: user.name,
repository: { repository: {
name: name, name: name,
url: web_url, url: url_to_repo,
description: description, description: description,
homepage: web_url, homepage: web_url,
}, },
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
:user_name => "John Smith", :user_name => "John Smith",
:repository => { :repository => {
:name => "Diaspora", :name => "Diaspora",
:url => "localhost/diaspora", :url => "git@localhost/diaspora.git",
:description => "", :description => "",
:homepage => "localhost/diaspora", :homepage => "http://localhost/diaspora",
:private => true :private => true
}, },
:commits => [ :commits => [
......
...@@ -91,7 +91,7 @@ describe Project, "Hooks" do ...@@ -91,7 +91,7 @@ describe Project, "Hooks" do
subject { @data[:repository] } subject { @data[:repository] }
it { should include(name: project.name) } it { should include(name: project.name) }
it { should include(url: project.web_url) } it { should include(url: project.url_to_repo) }
it { should include(description: project.description) } it { should include(description: project.description) }
it { should include(homepage: project.web_url) } it { should include(homepage: project.web_url) }
end end
......
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