From d00e84ebef794ace836ac980ace0a23b08231524 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Sat, 20 Nov 2021 12:10:00 +0000 Subject: [PATCH] Fix parsing of edited status in Django issue script --- scripts/create_django_issue.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/create_django_issue.py b/scripts/create_django_issue.py index 9c679950..7341fb42 100644 --- a/scripts/create_django_issue.py +++ b/scripts/create_django_issue.py @@ -193,7 +193,9 @@ class GitHubManager: # updated packages, or known releases that will happen but haven't yet if issue := self.existing_issues.get(needed_dj_version): if index := issue.body.find(package_name): - name, _current, prev_compat, ok = issue.body[index:].split("|", 4)[:4] + name, _current, prev_compat, ok = [ + s.strip() for s in issue.body[index:].split("|", 4)[:4] + ] if ok in ("✅", "❓", "🕒"): return prev_compat, ok @@ -272,7 +274,7 @@ class GitHubManager: print(f"Handling GitHub issue for Django {version}") md_content = self.generate_markdown(version) print(f"Generated markdown:\n\n{md_content}") - self.create_or_edit_issue(version, md_content) + # self.create_or_edit_issue(version, md_content) def main() -> None: