Skip to content
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

Split on commas in CC environment variable for chapel_commits emails #12

Merged
merged 4 commits into from Jan 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion emailer.py
Expand Up @@ -129,7 +129,11 @@ def _send_email(msg_info):
logging.error('sender and recipient config vars must be set.')
raise ValueError('sender and recipient config vars must be set.')

recipient_cc = os.environ.get('GITHUB_COMMIT_EMAILER_RECIPIENT_CC', None)
recipient_ccs = os.environ.get('GITHUB_COMMIT_EMAILER_RECIPIENT_CC', None)
if recipient_ccs is not None:
recipient_cc = recipient_ccs.split(",")
else:
recipient_cc = None
reply_to = os.environ.get('GITHUB_COMMIT_EMAILER_REPLY_TO', None)
approved = os.environ.get('GITHUB_COMMIT_EMAILER_APPROVED_HEADER', None)
subject = _get_subject(msg_info['repo'], msg_info['message'])
Expand Down