-
- Downloads
Merge branch 'bugagazavr/gitlab-ce-extend-hooks' into 'master'
Add new data to project in push, issue, merge-request and note webhooks data _Originally opened at !2738 by @bugagazavr._ - - - **What does this MR do?** Adds more data to hooks, makes repository data in all hook more dry ( use one hook_attrs method for repository data in all hooks ) **Are there points in the code the reviewer needs to double check?** 1. https://gitlab.com/bugagazavr/gitlab-ce/blob/extend-hooks/app/models/project.rb#L738 2. https://gitlab.com/bugagazavr/gitlab-ce/blob/extend-hooks/app/models/concerns/issuable.rb#L132 3. https://gitlab.com/bugagazavr/gitlab-ce/blob/extend-hooks/lib/gitlab/push_data_builder.rb#L52 4. https://gitlab.com/bugagazavr/gitlab-ce/blob/extend-hooks/lib/gitlab/note_data_builder.rb#L56 **Why was this MR needed?** More information about user for push events, and more data about repositiry ( project ) **What are the relevant issue numbers?** No **Screenshots (if relevant)** No See merge request !2788
No related branches found
No related tags found
Showing
- CHANGELOG 5 additions, 0 deletionsCHANGELOG
- app/models/concerns/issuable.rb 4 additions, 7 deletionsapp/models/concerns/issuable.rb
- app/models/project.rb 12 additions, 3 deletionsapp/models/project.rb
- app/models/project_services/pushover_service.rb 1 addition, 1 deletionapp/models/project_services/pushover_service.rb
- doc/web_hooks/web_hooks.md 196 additions, 44 deletionsdoc/web_hooks/web_hooks.md
- lib/gitlab/note_data_builder.rb 4 additions, 7 deletionslib/gitlab/note_data_builder.rb
- lib/gitlab/push_data_builder.rb 6 additions, 10 deletionslib/gitlab/push_data_builder.rb
- spec/lib/gitlab/note_data_builder_spec.rb 24 additions, 6 deletionsspec/lib/gitlab/note_data_builder_spec.rb
- spec/lib/gitlab/push_data_builder_spec.rb 3 additions, 3 deletionsspec/lib/gitlab/push_data_builder_spec.rb
- spec/models/concerns/issuable_spec.rb 12 additions, 11 deletionsspec/models/concerns/issuable_spec.rb
- spec/models/merge_request_spec.rb 15 additions, 6 deletionsspec/models/merge_request_spec.rb
- spec/support/project_hook_data_shared_example.rb 27 additions, 0 deletionsspec/support/project_hook_data_shared_example.rb
Please register or sign in to comment