diff options
author | Rubén Dávila <ruben@gitlab.com> | 2015-12-03 22:48:08 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-02-19 13:14:48 -0500 |
commit | d7511a4b04f89a29057dbab2f5e3500fad4e5c18 (patch) | |
tree | 11dd2d71de32513145610aa1b76e72e8381f344a /app/models/merge_request.rb | |
parent | d3c243732869ca927406020bc5088b1931e4dc0c (diff) | |
download | gitlab-ce-d7511a4b04f89a29057dbab2f5e3500fad4e5c18.tar.gz |
Create reverse branch and generate MR with new branch. #3409
Diffstat (limited to 'app/models/merge_request.rb')
-rw-r--r-- | app/models/merge_request.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb index ea2b0e075f6..a7dd715a303 100644 --- a/app/models/merge_request.rb +++ b/app/models/merge_request.rb @@ -532,4 +532,8 @@ class MergeRequest < ActiveRecord::Base [diff_base_commit, last_commit] end + + def reverse_branch_name + "revert-#{id}-#{target_branch}" + end end |