27a75ea175
When a project uses fast-forward merging strategy user has to rebase MRs to target branch before it can be merged. Now user can do rebase in UI by clicking 'Rebase' button instead of doing rebase locally. This feature was already present in EE, this is only backport of the feature to CE. Couple of changes: * removed rebase license check * renamed migration (changed timestamp) Closes #40301
12 lines
328 B
Ruby
12 lines
328 B
Ruby
class RebaseWorker
|
|
include ApplicationWorker
|
|
|
|
def perform(merge_request_id, current_user_id)
|
|
current_user = User.find(current_user_id)
|
|
merge_request = MergeRequest.find(merge_request_id)
|
|
|
|
MergeRequests::RebaseService
|
|
.new(merge_request.source_project, current_user)
|
|
.execute(merge_request)
|
|
end
|
|
end
|