Automatically add Django version label to issue (#3492)

This commit is contained in:
Andrew Chen Wang 2021-12-25 12:00:00 -05:00 committed by GitHub
parent 1a31a2a35b
commit 95981c055a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: