gitlab-org--gitlab-foss/db
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
..
fixtures Random selection now also works for MySQL 2016-06-15 12:10:41 +02:00
migrate Enforce "developers can merge" during `pre-receive`. 2016-07-13 13:24:56 +05:30
schema.rb Enforce "developers can merge" during `pre-receive`. 2016-07-13 13:24:56 +05:30
seeds.rb init commit 2011-10-09 00:36:38 +03:00