mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 13:46:11 +10:00
Use humanize instead of titleize for MR title suggestion
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
@@ -20,7 +20,7 @@ module MergeRequestsHelper
|
||||
target_project_id: target_project.id,
|
||||
source_branch: event.branch_name,
|
||||
target_branch: target_project.repository.root_ref,
|
||||
title: event.branch_name.titleize
|
||||
title: event.branch_name.humanize
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
var mrTitle = $('#merge_request_title');
|
||||
|
||||
if(mrTitle.val().length == 0) {
|
||||
mrTitle.val("#{params[:ref].titleize}");
|
||||
mrTitle.val("#{params[:ref].humanize}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user