gitlab-org--gitlab-foss/spec
Douwe Maan 61611ad24f Merge branch 'oldrev-in-update-hooks' into 'master'
webhooks: include old revision in MR update events

## What does this MR do?

Includes the old revision for an MR in webhooks.

## Are there points in the code the reviewer needs to double check?

The docs do not give an example `update` hook; should I add one?

## Why was this MR needed?

In order to keep web hook listeners stateless, it helps to include the previous revision of the MR in the hook so that it does not need to remember the last revision (which may also be wrong in case of missed or out-of-order events due to previous errors).

## What are the relevant issue numbers?

N/A

## Screenshots (if relevant)

N/A

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] API support added
- Tests
  - [x] Added for this feature/bug
  - [x] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !5535
2016-08-01 19:58:26 +00:00
..
config
controllers Incorporate feedback 2016-07-29 13:54:45 +02:00
factories Merge branch 'zj-env-external-url' into 'master' 2016-08-01 09:04:09 +00:00
features Fix search results for notes without commits 2016-08-01 11:53:12 -03:00
finders Fix specs 2016-08-01 13:24:06 +02:00
fixtures Merge remote-tracking branch 'upstream/master' into new-issue-by-email 2016-07-26 14:51:52 +08:00
helpers Improve diff performance by eliminating redundant checks for text blobs 2016-07-29 21:06:50 -07:00
initializers Ignore invalid IPs in X-Forwarded-For when trusted proxies are configured. 2016-07-31 15:36:11 -04:00
javascripts ES6ify all the things! 2016-07-24 23:45:11 +03:00
lib Fix specs 2016-08-01 13:24:06 +02:00
mailers Make Notify specs more robust by setting up assignee names 2016-07-22 13:54:12 +02:00
models Merge branch 'fix-gh-pull-requests' into 'master' 2016-08-01 13:04:46 +00:00
requests Minor fixes in the Env API endpoints 2016-08-01 08:42:09 +02:00
routing Clean up unused routes 2016-07-26 12:06:42 +02:00
services webhooks: include old revision in MR update events 2016-08-01 11:20:07 -04:00
support Merge branch 'fix-extra-new-line-crlf' into 'master' 2016-08-01 12:30:13 +00:00
tasks/gitlab
uploaders Remove VideoJS and clean the integration 2016-07-20 11:36:42 +02:00
views Update to gitlab_git 10.4.1 and take advantage of preserved Ref objects 2016-07-28 12:24:47 -04:00
workers Merge remote-tracking branch 'upstream/master' into new-issue-by-email 2016-07-27 18:11:50 +08:00
factories_spec.rb
rails_helper.rb
simplecov_env.rb Introduce SimpleCovEnv singleton helper and use it 2016-07-21 12:46:49 +02:00
spec_helper.rb Introduce SimpleCovEnv singleton helper and use it 2016-07-21 12:46:49 +02:00
teaspoon_env.rb