Include project_id in webhook payload.

This commit is contained in:
Marin Jankovski 2013-10-14 12:03:25 +02:00
parent 1073019d36
commit 9ed59ee9f0
3 changed files with 4 additions and 0 deletions

View File

@ -112,6 +112,7 @@ class GitPushService
# ref: String,
# user_id: String,
# user_name: String,
# project_id: String,
# repository: {
# name: String,
# url: String,
@ -136,6 +137,7 @@ class GitPushService
ref: ref,
user_id: user.id,
user_name: user.name,
project_id: project.id,
repository: {
name: project.name,
url: project.url_to_repo,

View File

@ -5,6 +5,7 @@
"ref": "refs/heads/master",
"user_id": 4,
"user_name": "John Smith",
"project_id": 15,
"repository": {
"name": "Diaspora",
"url": "git@localhost:diaspora.git",

View File

@ -26,6 +26,7 @@ describe GitPushService do
it { should include(ref: @ref) }
it { should include(user_id: user.id) }
it { should include(user_name: user.name) }
it { should include(project_id: project.id) }
context "with repository data" do
subject { @push_data[:repository] }