gitlab-org--gitlab-foss/app
Timothy Andrew 495db09653 Enforce "developers can merge" during pre-receive.
1. When a merge request is being merged, save the merge commit SHA in
   the `in_progress_merge_commit_sha` database column.

2. The `pre-receive` hook looks for any locked (in progress) merge
   request with `in_progress_merge_commit_sha` matching the `newrev` it
   is passed.

3. If it finds a matching MR, the merge is legitimate.

4. Update `git_access_spec` to test the behaviour we added here. Also
   refactored this spec a bit to make it easier to add more contexts / conditions.
2016-07-13 13:24:56 +05:30
..
assets Added "developers can merge" setting to protected branches 2016-07-13 13:24:26 +05:30
controllers Added "developers can merge" setting to protected branches 2016-07-13 13:24:26 +05:30
finders Merge branch 'approval-required-todo' into 'master' 2016-07-12 19:50:33 +00:00
helpers Change running status color to blue; update icon to spinner 2016-07-12 16:34:00 -05:00
mailers Display new diff notes and allow creation through the web interface 2016-07-06 18:51:00 -04:00
models Enforce "developers can merge" during pre-receive. 2016-07-13 13:24:56 +05:30
services Enforce "developers can merge" during pre-receive. 2016-07-13 13:24:56 +05:30
uploaders Enable Style/SpaceAfterComma Rubocop cop 2016-06-29 15:23:44 +02:00
validators refactor url validator to use sanitizer for check 2016-07-01 09:02:45 +02:00
views Added "developers can merge" setting to protected branches 2016-07-13 13:24:26 +05:30
workers Expire the branch cache after git gc runs 2016-07-12 05:42:19 -07:00