Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,9 @@ tox -e flake8
tox -e coverage
```

Update: 2017-10-03
Update: 2017-10-04
------------------

Changed GITHUB_COMMIT_EMAILER_RECIPIENT
from 'chapel-commits AT lists DOT sourceforge DOT net'
to 'chapel_commits AT cray DOT com'
Added GITHUB_COMMIT_EMAILER_RECIPIENT_CC

[0]: https://toolbelt.heroku.com/
4 changes: 3 additions & 1 deletion emailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ 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)
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 All @@ -152,7 +153,8 @@ def _send_email(msg_info):
to_addr=recipient,
from_addr=sender,
subject=subject,
text_body=body
text_body=body,
cc_addr=recipient_cc,
)

if reply_to is not None:
Expand Down
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-2.7.14