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
Boxiang Sun
gitlab-ce
Commits
5bb5019e
Commit
5bb5019e
authored
Feb 01, 2016
by
Rubén Dávila
Committed by
Robert Speicher
Feb 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use adequate description for new MR.
parent
0b7d70a3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+2
-1
app/services/merge_requests/build_service.rb
app/services/merge_requests/build_service.rb
+1
-1
No files found.
app/controllers/projects/merge_requests_controller.rb
View file @
5bb5019e
...
...
@@ -200,7 +200,8 @@ class Projects::MergeRequestsController < Projects::ApplicationController
source_branch:
@merge_request
.
revert_branch_name
,
target_branch:
@merge_request
.
target_branch
,
source_project_id:
@merge_request
.
target_project_id
,
target_project_id:
@merge_request
.
target_project_id
target_project_id:
@merge_request
.
target_project_id
,
description:
"Reverts
#{
@merge_request
.
to_reference
}
"
}}
redirect_to
new_namespace_project_merge_request_url
(
@project
.
namespace
,
@project
,
url_params
)
...
...
app/services/merge_requests/build_service.rb
View file @
5bb5019e
...
...
@@ -56,7 +56,7 @@ module MergeRequests
if
commits
&&
commits
.
count
==
1
commit
=
commits
.
first
merge_request
.
title
=
commit
.
title
merge_request
.
description
=
commit
.
description
.
try
(
:strip
)
merge_request
.
description
||
=
commit
.
description
.
try
(
:strip
)
else
merge_request
.
title
=
merge_request
.
source_branch
.
titleize
.
humanize
end
...
...
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