BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
9ed59ee9
Commit
9ed59ee9
authored
Oct 14, 2013
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include project_id in webhook payload.
parent
1073019d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
git_push_service.rb
app/services/git_push_service.rb
+2
-0
_data_ex.html.erb
app/views/projects/hooks/_data_ex.html.erb
+1
-0
git_push_service_spec.rb
spec/services/git_push_service_spec.rb
+1
-0
No files found.
app/services/git_push_service.rb
View file @
9ed59ee9
...
...
@@ -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
,
...
...
app/views/projects/hooks/_data_ex.html.erb
View file @
9ed59ee9
...
...
@@ -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",
...
...
spec/services/git_push_service_spec.rb
View file @
9ed59ee9
...
...
@@ -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
]
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment