diff options
author | Franz Liedke <franz@develophp.org> | 2018-07-31 17:42:17 +0300 |
---|---|---|
committer | Franz Liedke <franz@develophp.org> | 2018-08-26 00:02:36 +0300 |
commit | 50f9e92651c1b82d8f8df960754f2736a606d6f8 (patch) | |
tree | 54f8fa09f28f65c8d85efdfc8bff04e6048779b5 /app/services | |
parent | 56a3f7b7c65e87b73ec081dacea4cd04e7780c6f (diff) |
Fix fallback logic for automatic MR title assignment
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/merge_requests/build_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/merge_requests/build_service.rb b/app/services/merge_requests/build_service.rb index bc988eb2a26..414922b5753 100644 --- a/app/services/merge_requests/build_service.rb +++ b/app/services/merge_requests/build_service.rb @@ -162,7 +162,7 @@ module MergeRequests def assign_title_from_issue return unless issue - merge_request.title = "Resolve \"#{issue.title}\"" if issue.is_a?(Issue) + merge_request.title ||= "Resolve \"#{issue.title}\"" if issue.is_a?(Issue) return if merge_request.title.present? |