From 95981c055ab0c7d3d4e4e2803c7d7e07cc97b159 Mon Sep 17 00:00:00 2001 From: Andrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com> Date: Sat, 25 Dec 2021 12:00:00 -0500 Subject: [PATCH] Automatically add Django version label to issue (#3492) --- scripts/create_django_issue.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/create_django_issue.py b/scripts/create_django_issue.py index 0ebd082f..daee8fe1 100644 --- a/scripts/create_django_issue.py +++ b/scripts/create_django_issue.py @@ -264,9 +264,10 @@ class GitHubManager: issue.edit(body=description) else: print(f"Creating new issue for Django {needed_dj_version}") - self.repo.create_issue( + issue = self.repo.create_issue( f"[Update Django] Django {needed_dj_version}", description ) + issue.add_to_labels(f"django{needed_dj_version}") def generate(self): for version in self.needed_dj_versions: