Skip to content

Commit

Permalink
Truncate the issue's title to 254 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
qgong committed May 6, 2021
1 parent 5ee92d9 commit b33af5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sync2jira/intermediary.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, source, title, url, upstream, comments,
config, tags, fixVersion, priority, content,
reporter, assignee, status, id, upstream_id, downstream=None):
self.source = source
self._title = title
self._title = title[:254]
self.url = url
self.upstream = upstream
self.comments = comments
Expand Down Expand Up @@ -167,7 +167,7 @@ def __init__(self, source, jira_key, title, url, upstream, config,
assignee, status, id, suffix, match, downstream=None):
self.source = source
self.jira_key = jira_key
self._title = title
self._title = title[:254]
self.url = url
self.upstream = upstream
self.comments = comments
Expand Down

0 comments on commit b33af5c

Please sign in to comment.