Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2389b0f commit 6e0d1c7Copy full SHA for 6e0d1c7
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