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
Script to mail regular issue summaries to typing-sig #929
Conversation
|
Apart from a couple of things LGTM:
|
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
See my comment above:
|
|
I've now set up a cron job that executes this script every Monday morning. Let's see whether this get through tomorrow. |
Use a constant for the label
scripts/typing-summary.py
Outdated
| s += "The following issues and pull requests were opened last week: \n\n" | ||
| s += "".join(generate_issue_text(issue) for issue in new) | ||
| s += "\n---------------------------------------------------\n\n" | ||
| if len(changed) >= 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe these should be >, so that they don't run every time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
|
Ping. This has now been officially used for a few weeks. I think we should merge it. |
Example output (with cheated "since" date, since last week I touched all issues):
This script would be run once a week as a cron job. Unfortunately it seems that we can't mail directly from GitHub Actions (at least not without a mail server configured for it), but I can set up a cron job on a company server.
One possible caveat: It's possible the Python mail server will reject the mail with a python.org-From from a remote web server, in which case we need to change the
Fromto something else.@gvanrossum Would this weekly report be okay for typing-sig?
Cc @shannonzhu