Skip to content

Commit 627cb28

Browse files
committed
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
2 parents 3cbfb1e + 04aba77 commit 627cb28

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

app/services/git_push_service.rb

+2
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def process_commit_messages ref
112112
# ref: String,
113113
# user_id: String,
114114
# user_name: String,
115+
# project_id: String,
115116
# repository: {
116117
# name: String,
117118
# url: String,
@@ -136,6 +137,7 @@ def post_receive_data(oldrev, newrev, ref)
136137
ref: ref,
137138
user_id: user.id,
138139
user_name: user.name,
140+
project_id: project.id,
139141
repository: {
140142
name: project.name,
141143
url: project.url_to_repo,

app/views/projects/hooks/_data_ex.html.erb

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"ref": "refs/heads/master",
66
"user_id": 4,
77
"user_name": "John Smith",
8+
"project_id": 15,
89
"repository": {
910
"name": "Diaspora",
1011
"url": "git@localhost:diaspora.git",

spec/services/git_push_service_spec.rb

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
it { should include(ref: @ref) }
2727
it { should include(user_id: user.id) }
2828
it { should include(user_name: user.name) }
29+
it { should include(project_id: project.id) }
2930

3031
context "with repository data" do
3132
subject { @push_data[:repository] }

0 commit comments

Comments
 (0)