10000 Show issue's title in the output · r3v1/python-docs-es@cc0603c · GitHub
[go: up one dir, main page]

Skip to content

Commit cc0603c

Browse files
committed
Show issue's title in the output
1 parent e4564bb commit cc0603c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/create_issue.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@
4040
sys.exit(1)
4141

4242
# https://pygithub.readthedocs.io/en/latest/github_objects/Repository.html#github.Repository.Repository.create_issue
43+
title = f'Translate `{pofilename}`'
4344
issue = repo.create_issue(
44-
title=f'Translate `{pofilename}`',
45+
title=title,
4546
body=f'''This needs to reach 100% translated.
4647
4748
Current stats for `{pofilename}`:
@@ -55,4 +56,4 @@
5556
5657
Remember to follow the steps in our [Contributing Guide](https://python-docs-es.readthedocs.io/page/CONTRIBUTING.html).''',
5758
)
58-
print(f'Issue created at {issue.html_url}')
59+
print(f'Issue "{title}" created at {issue.html_url}')

0 commit comments

Comments
 (0)
0