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
13cde65b
Commit
13cde65b
authored
Aug 11, 2020
by
Vladimir Shushlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add deployment events to webhooks form
parent
1eee55f8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletion
+19
-1
app/views/shared/web_hooks/_form.html.haml
app/views/shared/web_hooks/_form.html.haml
+6
-0
changelogs/unreleased/25344-fire-webhook-on-new-deployment-2.yml
...ogs/unreleased/25344-fire-webhook-on-new-deployment-2.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+6
-0
spec/controllers/projects/hooks_controller_spec.rb
spec/controllers/projects/hooks_controller_spec.rb
+2
-1
No files found.
app/views/shared/web_hooks/_form.html.haml
View file @
13cde65b
...
@@ -72,6 +72,12 @@
...
@@ -72,6 +72,12 @@
%strong
Wiki Page events
%strong
Wiki Page events
%p
.text-muted.ml-1
%p
.text-muted.ml-1
This URL will be triggered when a wiki page is created/updated
This URL will be triggered when a wiki page is created/updated
%li
=
form
.
check_box
:deployment_events
,
class:
'form-check-input'
=
form
.
label
:deployment_events
,
class:
'list-label form-check-label ml-1'
do
%strong
=
s_
(
'Webhooks|Deployment events'
)
%p
.text-muted.ml-1
=
s_
(
'Webhooks|This URL will be triggered when a deployment is finished/failed/canceled'
)
.form-group
.form-group
=
form
.
label
:enable_ssl_verification
,
'SSL verification'
,
class:
'label-bold checkbox'
=
form
.
label
:enable_ssl_verification
,
'SSL verification'
,
class:
'label-bold checkbox'
.form-check
.form-check
...
...
changelogs/unreleased/25344-fire-webhook-on-new-deployment-2.yml
0 → 100644
View file @
13cde65b
---
title
:
Add webhooks for deployments
merge_request
:
38902
author
:
type
:
added
locale/gitlab.pot
View file @
13cde65b
...
@@ -27334,6 +27334,12 @@ msgstr ""
...
@@ -27334,6 +27334,12 @@ msgstr ""
msgid "Webhooks have moved. They can now be found under the Settings menu."
msgid "Webhooks have moved. They can now be found under the Settings menu."
msgstr ""
msgstr ""
msgid "Webhooks|Deployment events"
msgstr ""
msgid "Webhooks|This URL will be triggered when a deployment is finished/failed/canceled"
msgstr ""
msgid "Wednesday"
msgid "Wednesday"
msgstr ""
msgstr ""
...
...
spec/controllers/projects/hooks_controller_spec.rb
View file @
13cde65b
...
@@ -36,7 +36,8 @@ RSpec.describe Projects::HooksController do
...
@@ -36,7 +36,8 @@ RSpec.describe Projects::HooksController do
note_events:
true
,
note_events:
true
,
job_events:
true
,
job_events:
true
,
pipeline_events:
true
,
pipeline_events:
true
,
wiki_page_events:
true
wiki_page_events:
true
,
deployment_events:
true
}
}
post
:create
,
params:
{
namespace_id:
project
.
namespace
,
project_id:
project
,
hook:
hook_params
}
post
:create
,
params:
{
namespace_id:
project
.
namespace
,
project_id:
project
,
hook:
hook_params
}
...
...
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