From c269ffeda51d8984a3cb148d1eff7bc225de56b6 Mon Sep 17 00:00:00 2001 From: Peter Mosmans Date: Wed, 29 Nov 2017 19:20:30 +1000 Subject: [PATCH] Use two digits in filenames --- chatops/python/gitlab-to-pentext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatops/python/gitlab-to-pentext.py b/chatops/python/gitlab-to-pentext.py index 27c14dd..a0045f3 100644 --- a/chatops/python/gitlab-to-pentext.py +++ b/chatops/python/gitlab-to-pentext.py @@ -141,7 +141,7 @@ def from_issue(issue): else: return None item.title = validate_report.capitalize(issue.title.strip()) - item.identifier = 'f{0}-{1}'.format(issue.iid, valid_filename(item.title)) + item.identifier = 'f{0:02}-{1}'.format(issue.iid, valid_filename(item.title)) return item