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
7f3ff241
Commit
7f3ff241
authored
Jan 10, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add TriggerableHooks to GroupHook
parent
58e326b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
ee/app/models/hooks/group_hook.rb
ee/app/models/hooks/group_hook.rb
+13
-0
ee/app/views/groups/hooks/_project_hook.html.haml
ee/app/views/groups/hooks/_project_hook.html.haml
+3
-3
No files found.
ee/app/models/hooks/group_hook.rb
View file @
7f3ff241
class
GroupHook
<
ProjectHook
include
CustomModelNaming
include
TriggerableHooks
self
.
singular_route_key
=
:hook
triggerable_hooks
[
:push_hooks
,
:tag_push_hooks
,
:issue_hooks
,
:confidential_issue_hooks
,
:note_hooks
,
:merge_request_hooks
,
:job_hooks
,
:pipeline_hooks
,
:wiki_page_hooks
]
belongs_to
:group
clear_validators!
...
...
ee/app/views/groups/hooks/_project_hook.html.haml
View file @
7f3ff241
...
...
@@ -3,9 +3,9 @@
.col-md-8.col-lg-7
%strong
.light-header
=
hook
.
url
%div
-
%w(push_events tag_push_events issues_events note_events merge_requests_events job_events wiki_page_events)
.
each
do
|
trigger
|
-
if
hook
.
send
(
trigger
)
%span
.label.label-gray.deploy-project-label
=
trigger
.
titleize
-
GroupHook
.
triggers
.
each_value
do
|
trigger
|
-
if
hook
.
public_
send
(
trigger
)
%span
.label.label-gray.deploy-project-label
=
trigger
.
t
o_s
.
t
itleize
.col-md-4.col-lg-5.text-right-lg.prepend-top-5
%span
.append-right-10.inline
SSL Verification:
#{
hook
.
enable_ssl_verification
?
"enabled"
:
"disabled"
}
...
...
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