Skip to content

Create issues by pageviews #416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 20, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Show issue's title in the output
  • Loading branch information
humitos committed Jun 19, 2020
commit cc0603ce960f1a8d27e1ea7725e713800ebc7e53
5 changes: 3 additions & 2 deletions scripts/create_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
sys.exit(1)

# https://pygithub.readthedocs.io/en/latest/github_objects/Repository.html#github.Repository.Repository.create_issue
title = f'Translate `{pofilename}`'
issue = repo.create_issue(
title=f'Translate `{pofilename}`',
title=title,
body=f'''This needs to reach 100% translated.

Current stats for `{pofilename}`:
Expand All @@ -55,4 +56,4 @@

Remember to follow the steps in our [Contributing Guide](https://python-docs-es.readthedocs.io/page/CONTRIBUTING.html).''',
)
print(f'Issue created at {issue.html_url}')
print(f'Issue "{title}" created at {issue.html_url}')