Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d4d95b2c
Commit
d4d95b2c
authored
Jul 20, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflicts introduced by
e0ab5618
parent
66855b9b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
21 deletions
+3
-21
app/models/hooks/group_hook.rb
app/models/hooks/group_hook.rb
+3
-0
app/models/hooks/project_hook.rb
app/models/hooks/project_hook.rb
+0
-4
app/services/wiki_pages/base_service.rb
app/services/wiki_pages/base_service.rb
+0
-17
No files found.
app/models/hooks/group_hook.rb
View file @
d4d95b2c
...
...
@@ -4,4 +4,7 @@ class GroupHook < ProjectHook
self
.
singular_route_key
=
:hook
belongs_to
:group
clear_validators!
validates
:url
,
presence:
true
,
url:
true
end
app/models/hooks/project_hook.rb
View file @
d4d95b2c
class
ProjectHook
<
WebHook
<<<<<<<
HEAD
include
CustomModelNaming
self
.
singular_route_key
=
:hook
belongs_to
:project
=======
TRIGGERS
=
{
push_hooks: :push_events
,
tag_push_hooks: :tag_push_events
,
...
...
@@ -21,7 +18,6 @@ class ProjectHook < WebHook
TRIGGERS
.
each
do
|
trigger
,
event
|
scope
trigger
,
->
{
where
(
event
=>
true
)
}
end
>>>>>>>
ce
/
master
belongs_to
:project
validates
:project
,
presence:
true
...
...
app/services/wiki_pages/base_service.rb
View file @
d4d95b2c
module
WikiPages
class
BaseService
<
::
BaseService
<<<<<<<
HEAD
prepend
EE
::
WikiPages
::
BaseService
def
hook_data
(
page
,
action
)
hook_data
=
{
object_kind:
page
.
class
.
name
.
underscore
,
user:
current_user
.
hook_attrs
,
project:
@project
.
hook_attrs
,
wiki:
@project
.
wiki
.
hook_attrs
,
object_attributes:
page
.
hook_attrs
}
page_url
=
Gitlab
::
UrlBuilder
.
build
(
page
)
hook_data
[
:object_attributes
].
merge!
(
url:
page_url
,
action:
action
)
hook_data
end
=======
>>>>>>>
ce
/
master
private
def
execute_hooks
(
page
,
action
=
'create'
)
...
...
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