Preserve target branch
This commit is contained in:
parent
2611d9f63c
commit
22775c596f
1 changed files with 5 additions and 1 deletions
|
@ -55,7 +55,11 @@ module MergeRequests
|
||||||
# Refresh merge request diff if we push to source or target branch of merge request
|
# Refresh merge request diff if we push to source or target branch of merge request
|
||||||
# Note: we should update merge requests from forks too
|
# Note: we should update merge requests from forks too
|
||||||
def reload_merge_requests
|
def reload_merge_requests
|
||||||
@merge_requests.each do |merge_request|
|
merge_requests = @project.merge_requests.opened.by_branch(@branch_name).to_a
|
||||||
|
merge_requests += @fork_merge_requests.by_branch(@branch_name).to_a
|
||||||
|
merge_requests = filter_merge_requests(merge_requests)
|
||||||
|
|
||||||
|
merge_requests.each do |merge_request|
|
||||||
|
|
||||||
if merge_request.source_branch == @branch_name || force_push?
|
if merge_request.source_branch == @branch_name || force_push?
|
||||||
merge_request.reload_code
|
merge_request.reload_code
|
||||||
|
|
Loading…
Reference in a new issue