gitlab-org--gitlab-foss/spec
Douwe Maan bbbfdba0b9 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
2016-02-16 13:08:36 +00:00
..
benchmarks Move Markdown/reference logic from Gitlab::Markdown to Banzai 2015-12-15 15:51:16 +01:00
controllers Ensure Commit#show responds 404 instead of 500 when given an invalid ID 2016-02-15 15:48:16 -05:00
factories Pass current_user to merge_request.closes_issues in API ans streamline MR API specs 2016-02-11 09:34:07 +01:00
features Merge branch 'master' into ci-permissions 2016-02-05 20:15:32 +01:00
finders remove public field from namespace and refactoring 2016-01-04 16:00:29 +02:00
fixtures Render sanitized SVG images 2016-02-01 18:25:32 +01:00
helpers Fix relative links in other markup formats 2016-02-12 17:20:59 +01:00
initializers Ensure Gravatar host looks like an actual host 2016-01-18 14:58:16 +01:00
javascripts Project dropdown test span -> i 2016-02-05 20:08:28 +00:00
lib Merge branch 'bugagazavr/gitlab-ce-extend-hooks' into 'master' 2016-02-16 13:08:36 +00:00
mailers Move profile notifications specs to separate file 2016-02-12 14:01:28 +01:00
models Merge branch 'bugagazavr/gitlab-ce-extend-hooks' into 'master' 2016-02-16 13:08:36 +00:00
requests Merge branch 'skakirill/gitlab-ce-api-merge-request-setup-milestone' into 'master' 2016-02-12 08:39:18 +00:00
routing Increase the minimum length for commit SHA matching to 7 2016-01-29 19:52:29 -05:00
services updated system note service and spec based on feedback 2016-02-16 09:01:56 +01:00
support Merge branch 'bugagazavr/gitlab-ce-extend-hooks' into 'master' 2016-02-16 13:08:36 +00:00
tasks/gitlab Add lfs to backup specs. 2015-11-19 10:43:45 +01:00
views/help
workers Write to InfluxDB directly via UDP 2015-12-29 14:53:45 +01:00
factories.rb Unsubscribe from thread through link in email footer 2016-01-09 12:41:22 +01:00
factories_spec.rb
rails_helper.rb
spec_helper.rb Add temporary monkey patch to get specs passing on 4.2.5.1 2016-01-25 14:53:28 -08:00
teaspoon_env.rb