gitlab-org--gitlab-foss/db
Oswaldo Ferreira 3af348b6cf Automatically update MR merge-ref along merge status
This couples the code that transitions the `MergeRequest#merge_status`
and refs/merge-requests/:iid/merge ref update.

In general, instead of directly telling `MergeToRefService` to update
the merge ref, we should rely on `MergeabilityCheckService` to keep
both the merge status and merge ref synced. Now, if the merge_status is
`can_be_merged` it means the merge-ref is also updated to the latest.

We've also updated the logic to be more systematic and less user-based.
2019-06-20 11:48:30 -03:00
..
fixtures Provide a new gitlab:seed:issues task 2019-04-23 11:43:53 +02:00
importers Change the schema of the common_metrics.yml 2019-04-17 20:02:24 +08:00
migrate Backport of 12014-incremental-es-wiki-updates 2019-06-18 16:57:37 -06:00
optional_migrations Add version 4.2 to all existing migrations 2018-11-22 13:18:28 +01:00
post_migrate Automatically update MR merge-ref along merge status 2019-06-20 11:48:30 -03:00
schema.rb Automatically update MR merge-ref along merge status 2019-06-20 11:48:30 -03:00
seeds.rb