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
f99b0cc5
Commit
f99b0cc5
authored
Dec 04, 2017
by
Alexis Reigel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no need for a named parameter
parent
a63792b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/models/hooks/project_hook.rb
app/models/hooks/project_hook.rb
+1
-1
app/models/hooks/system_hook.rb
app/models/hooks/system_hook.rb
+1
-1
spec/models/concerns/triggerable_hooks_spec.rb
spec/models/concerns/triggerable_hooks_spec.rb
+1
-1
No files found.
app/models/hooks/project_hook.rb
View file @
f99b0cc5
class
ProjectHook
<
WebHook
class
ProjectHook
<
WebHook
include
TriggerableHooks
include
TriggerableHooks
triggerable_hooks
only:
[
triggerable_hooks
[
:push_hooks
,
:push_hooks
,
:tag_push_hooks
,
:tag_push_hooks
,
:issue_hooks
,
:issue_hooks
,
...
...
app/models/hooks/system_hook.rb
View file @
f99b0cc5
class
SystemHook
<
WebHook
class
SystemHook
<
WebHook
include
TriggerableHooks
include
TriggerableHooks
triggerable_hooks
only:
[
triggerable_hooks
[
:repository_update_hooks
,
:repository_update_hooks
,
:push_hooks
,
:push_hooks
,
:tag_push_hooks
,
:tag_push_hooks
,
...
...
spec/models/concerns/triggerable_hooks_spec.rb
View file @
f99b0cc5
...
@@ -4,7 +4,7 @@ RSpec.describe TriggerableHooks do
...
@@ -4,7 +4,7 @@ RSpec.describe TriggerableHooks do
before
do
before
do
class
TestableHook
<
WebHook
class
TestableHook
<
WebHook
include
TriggerableHooks
include
TriggerableHooks
triggerable_hooks
only:
[
:push_hooks
]
triggerable_hooks
[
:push_hooks
]
end
end
end
end
...
...
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