Use #iid for revert branch name so it's consistent when the MR id in the URL.

This commit is contained in:
Rubén Dávila 2016-02-01 14:32:15 -05:00 committed by Robert Speicher
parent e1a3c8cd1a
commit 0b7d70a35e
1 changed files with 1 additions and 1 deletions

View File

@ -535,6 +535,6 @@ class MergeRequest < ActiveRecord::Base
end
def revert_branch_name
"revert-#{id}-#{target_branch}"
"revert-#{iid}-#{target_branch}"
end
end