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
e3311178
Commit
e3311178
authored
May 13, 2016
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Admin UI to enable Wiki Page events webhook in projects
parent
de20bd5b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
hooks_controller.rb
app/controllers/projects/hooks_controller.rb
+2
-1
_project_hook.html.haml
app/views/projects/hooks/_project_hook.html.haml
+1
-1
index.html.haml
app/views/projects/hooks/index.html.haml
+7
-0
No files found.
app/controllers/projects/hooks_controller.rb
View file @
e3311178
...
@@ -63,7 +63,8 @@ class Projects::HooksController < Projects::ApplicationController
...
@@ -63,7 +63,8 @@ class Projects::HooksController < Projects::ApplicationController
:push_events
,
:push_events
,
:tag_push_events
,
:tag_push_events
,
:token
,
:token
,
:url
:url
,
:wiki_page_events
)
)
end
end
end
end
app/views/projects/hooks/_project_hook.html.haml
View file @
e3311178
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
.col-md-8.col-lg-7
.col-md-8.col-lg-7
%strong
.light-header
=
hook
.
url
%strong
.light-header
=
hook
.
url
%div
%div
-
%w(push_events tag_push_events issues_events note_events merge_requests_events build_events)
.
each
do
|
trigger
|
-
%w(push_events tag_push_events issues_events note_events merge_requests_events build_events
wiki_page_events
)
.
each
do
|
trigger
|
-
if
hook
.
send
(
trigger
)
-
if
hook
.
send
(
trigger
)
%span
.label.label-gray.deploy-project-label
=
trigger
.
titleize
%span
.label.label-gray.deploy-project-label
=
trigger
.
titleize
.col-md-4.col-lg-5.text-right-lg.prepend-top-5
.col-md-4.col-lg-5.text-right-lg.prepend-top-5
...
...
app/views/projects/hooks/index.html.haml
View file @
e3311178
...
@@ -64,6 +64,13 @@
...
@@ -64,6 +64,13 @@
Build events
Build events
%p
.light
%p
.light
This url will be triggered when the build status changes
This url will be triggered when the build status changes
%div
=
f
.
check_box
:wiki_page_events
,
class:
'pull-left'
.prepend-left-20
=
f
.
label
:wiki_page_events
,
class:
'label-light append-bottom-0'
do
%strong
Wiki Page events
%p
.light
This url will be triggered when a wiki page is created/updated
.form-group
.form-group
=
f
.
label
:enable_ssl_verification
,
"SSL verification"
,
class:
"label-light"
=
f
.
label
:enable_ssl_verification
,
"SSL verification"
,
class:
"label-light"
%div
%div
...
...
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