Commit 30b72919 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'reference_merge_request_in_commit_message' into 'master'

Add reference to the merge request in the default merge request commit message

This adds a link to the merge request to the merge request commit.

If merge requests are used for code review, the merge in git is now linked to the code review.

See http://feedback.gitlab.com/forums/176466-general/suggestions/6088000-in-the-default-merge-request-commit-message-add-a
parents 119b0287 c1b7e904
...@@ -7,6 +7,7 @@ v 7.1.0 ...@@ -7,6 +7,7 @@ v 7.1.0
- Add @all mention for comments - Add @all mention for comments
- Dont show reply button if user is not signed in - Dont show reply button if user is not signed in
- Expose more information for issues with webhook - Expose more information for issues with webhook
- Add a mention of the merge request into the default merge request commit message
v 7.0.0 v 7.0.0
- The CPU no longer overheats when you hold down the spacebar - The CPU no longer overheats when you hold down the spacebar
......
...@@ -293,6 +293,8 @@ class MergeRequest < ActiveRecord::Base ...@@ -293,6 +293,8 @@ class MergeRequest < ActiveRecord::Base
message << title.to_s message << title.to_s
message << "\n\n" message << "\n\n"
message << description.to_s message << description.to_s
message << "\n\n"
message << "See merge request !#{iid}"
message message
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment