Commit 0b91a533 authored by Stan Hu's avatar Stan Hu

Handle empty description field

parent fc5df829
...@@ -174,7 +174,7 @@ module Gitlab ...@@ -174,7 +174,7 @@ module Gitlab
def import_bitbucket_pull_request(pull_request) def import_bitbucket_pull_request(pull_request)
description = '' description = ''
description += @formatter.author_line(pull_request.author) unless find_user_id(pull_request.author_email) description += @formatter.author_line(pull_request.author) unless find_user_id(pull_request.author_email)
description += pull_request.description description += pull_request.description if pull_request.description
source_branch_sha = pull_request.source_branch_sha source_branch_sha = pull_request.source_branch_sha
target_branch_sha = pull_request.target_branch_sha target_branch_sha = pull_request.target_branch_sha
......
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