Use #iid for revert branch name so it's consistent when the MR id in the URL.
This commit is contained in:
parent
e1a3c8cd1a
commit
0b7d70a35e
|
|
@ -535,6 +535,6 @@ class MergeRequest < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def revert_branch_name
|
||||
"revert-#{id}-#{target_branch}"
|
||||
"revert-#{iid}-#{target_branch}"
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue