Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
2f76ccdf
Commit
2f76ccdf
authored
Feb 20, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Base new MR description on commit description if there's only one.
parent
1f617c3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
app/services/merge_requests/build_service.rb
app/services/merge_requests/build_service.rb
+7
-6
No files found.
app/services/merge_requests/build_service.rb
View file @
2f76ccdf
...
...
@@ -50,12 +50,13 @@ module MergeRequests
end
commits
=
merge_request
.
compare_commits
merge_request
.
title
=
\
if
commits
&&
commits
.
count
==
1
commits
.
first
.
title
else
merge_request
.
source_branch
.
titleize
.
humanize
end
if
commits
&&
commits
.
count
==
1
commit
=
commits
.
first
merge_request
.
title
=
commit
.
title
merge_request
.
description
=
commit
.
description
.
try
(
:strip
)
else
merge_request
.
title
=
merge_request
.
source_branch
.
titleize
.
humanize
end
merge_request
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment