Commit b2043309 authored by Dimitri Podborski's avatar Dimitri Podborski
Browse files

bugfix when title is too long for GitLab API

parent 72944f6f
......@@ -268,7 +268,12 @@ def create_issue_description(document, details):
def create_issue_title(document):
return document['document'].strip() + ' ' + document['title'].strip()
title = document['document'].strip() + ' ' + document['title'].strip()
if len(title) > 255:
print('WARNING: The Title of the document {} is too long. GitLab only accepts max of '
'255 characters'.format(document['document']))
title = title[0:255]
return title
def get_updated_issue_description(current_decription, document, details):
......
Supports Markdown
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