-
- Downloads
Filter project hooks by branch
Allow specificying a branch filter for a project hook and only trigger a project hook if either the branch filter is blank or the branch matches. Only supported for push_events for now.
parent
07356866
No related branches found
No related tags found
Showing
- app/controllers/projects/hooks_controller.rb 1 addition, 0 deletionsapp/controllers/projects/hooks_controller.rb
- app/models/hooks/active_hook_filter.rb 38 additions, 0 deletionsapp/models/hooks/active_hook_filter.rb
- app/models/hooks/web_hook.rb 1 addition, 0 deletionsapp/models/hooks/web_hook.rb
- app/models/project.rb 1 addition, 2 deletionsapp/models/project.rb
- app/validators/branch_filter_validator.rb 34 additions, 0 deletionsapp/validators/branch_filter_validator.rb
- app/views/shared/web_hooks/_form.html.haml 1 addition, 0 deletionsapp/views/shared/web_hooks/_form.html.haml
- changelogs/unreleased/filter-web-hooks-by-branch.yml 5 additions, 0 deletionschangelogs/unreleased/filter-web-hooks-by-branch.yml
- db/migrate/20180607071808_add_push_events_branch_filter_to_web_hooks.rb 12 additions, 0 deletions...80607071808_add_push_events_branch_filter_to_web_hooks.rb
- db/schema.rb 1 addition, 0 deletionsdb/schema.rb
- doc/api/projects.md 3 additions, 0 deletionsdoc/api/projects.md
- doc/user/project/integrations/webhooks.md 2 additions, 2 deletionsdoc/user/project/integrations/webhooks.md
- lib/api/entities.rb 1 addition, 0 deletionslib/api/entities.rb
- lib/api/project_hooks.rb 3 additions, 0 deletionslib/api/project_hooks.rb
- spec/features/projects/settings/integration_settings_spec.rb 1 addition, 0 deletionsspec/features/projects/settings/integration_settings_spec.rb
- spec/lib/gitlab/import_export/safe_model_attributes.yml 1 addition, 0 deletionsspec/lib/gitlab/import_export/safe_model_attributes.yml
- spec/models/hooks/active_hook_filter_spec.rb 67 additions, 0 deletionsspec/models/hooks/active_hook_filter_spec.rb
- spec/models/hooks/web_hook_spec.rb 20 additions, 0 deletionsspec/models/hooks/web_hook_spec.rb
- spec/models/project_spec.rb 16 additions, 1 deletionspec/models/project_spec.rb
- spec/requests/api/project_hooks_spec.rb 11 additions, 3 deletionsspec/requests/api/project_hooks_spec.rb
- spec/validators/branch_filter_validator_spec.rb 42 additions, 0 deletionsspec/validators/branch_filter_validator_spec.rb
app/models/hooks/active_hook_filter.rb
0 → 100644
app/validators/branch_filter_validator.rb
0 → 100644
spec/models/hooks/active_hook_filter_spec.rb
0 → 100644
Please register or sign in to comment