Include project_id in webhook payload.
This commit is contained in:
parent
1073019d36
commit
9ed59ee9f0
|
@ -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,
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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] }
|
||||
|
|
Loading…
Reference in New Issue