Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dimitri Podborski
AutomationTools
Commits
b2043309
Commit
b2043309
authored
Apr 12, 2021
by
Dimitri Podborski
Browse files
bugfix when title is too long for GitLab API
parent
72944f6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
automation/helpers.py
View file @
b2043309
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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