We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e510d87 + 6e0d1c7 commit 95bd65bCopy full SHA for 95bd65b
scripts/create_issue.py
@@ -15,6 +15,16 @@
15
g = Github(os.environ.get('GITHUB_TOKEN'))
16
17
repo = g.get_repo('PyCampES/python-docs-es')
18
+
19
20
+issues = repo.get_issues(state='open')
21
+for issue in issues:
22
+ if pofilename in issue.title:
23
+ msg = f'There is a similar issue already created at {issue.html_url}.\nDo you want to create it anyways? [y/N] '
24
+ answer = input(msg)
25
+ if answer != 'y':
26
+ sys.exit(1)
27
28
# https://pygithub.readthedocs.io/en/latest/github_objects/Repository.html#github.Repository.Repository.create_issue
29
issue = repo.create_issue(
30
title=f'Translate `{pofilename}`',
0 commit comments