]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
script/backport-create-issue: handle long Redmine issue names
authorNathan Cutler <ncutler@suse.com>
Tue, 30 Apr 2019 11:38:33 +0000 (13:38 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 30 Apr 2019 11:38:33 +0000 (13:38 +0200)
commit2ddb581a63e05c5dca656b176ee0872a6151769b
tree9224d179e1c68e4f9dd95813a91757bfe257938b
parentf82013123fc8a1a97ce412050529eea0834c791f
script/backport-create-issue: handle long Redmine issue names

Redmine issue names have a maximum length of 255 characters. When we prepend,
e.g., "nautilus: " to a very long issue name, we can end up with a string that
is over 255 characters long. Such a string will be refused by Redmine:

ValidationError: Subject is too long (maximum is 255 characters)

This patch avoids such an eventuality by truncating the post-prepend string to
255 characters.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/script/backport-create-issue