Commit 627cb28f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq

parents 3cbfb1ee 04aba778
...@@ -112,6 +112,7 @@ class GitPushService ...@@ -112,6 +112,7 @@ class GitPushService
# ref: String, # ref: String,
# user_id: String, # user_id: String,
# user_name: String, # user_name: String,
# project_id: String,
# repository: { # repository: {
# name: String, # name: String,
# url: String, # url: String,
...@@ -136,6 +137,7 @@ class GitPushService ...@@ -136,6 +137,7 @@ class GitPushService
ref: ref, ref: ref,
user_id: user.id, user_id: user.id,
user_name: user.name, user_name: user.name,
project_id: project.id,
repository: { repository: {
name: project.name, name: project.name,
url: project.url_to_repo, url: project.url_to_repo,
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"ref": "refs/heads/master", "ref": "refs/heads/master",
"user_id": 4, "user_id": 4,
"user_name": "John Smith", "user_name": "John Smith",
"project_id": 15,
"repository": { "repository": {
"name": "Diaspora", "name": "Diaspora",
"url": "git@localhost:diaspora.git", "url": "git@localhost:diaspora.git",
......
...@@ -26,6 +26,7 @@ describe GitPushService do ...@@ -26,6 +26,7 @@ describe GitPushService do
it { should include(ref: @ref) } it { should include(ref: @ref) }
it { should include(user_id: user.id) } it { should include(user_id: user.id) }
it { should include(user_name: user.name) } it { should include(user_name: user.name) }
it { should include(project_id: project.id) }
context "with repository data" do context "with repository data" do
subject { @push_data[:repository] } subject { @push_data[:repository] }
......
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