gitlab-org--gitlab-foss/app
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
..
assets Merge branch '20294-commit-tooltip' into 'master' 2016-08-01 19:15:32 +00:00
controllers Merge branch '15064_issuable_default_sort_order' into 'master' 2016-08-01 12:02:47 +00:00
finders State specific default sort order for issuables 2016-08-01 11:28:56 +02:00
helpers Merge branch '15064_issuable_default_sort_order' into 'master' 2016-08-01 12:02:47 +00:00
mailers Allow build email service to be tested 2016-07-15 20:38:27 -03:00
models Merge branch 'fix-gh-pull-requests' into 'master' 2016-08-01 13:04:46 +00:00
services webhooks: include old revision in MR update events 2016-08-01 11:20:07 -04:00
uploaders Remove magic comments from Ruby files (!5456) 2016-07-24 07:08:45 +02:00
validators refactor url validator to use sanitizer for check 2016-07-01 09:02:45 +02:00
views Merge branch 'issue_20063_2' into 'master' 2016-08-01 15:57:35 +00:00
workers Merge remote-tracking branch 'upstream/master' into new-issue-by-email 2016-07-27 18:11:50 +08:00