Skip to content

Commit a3b0398

Browse files
committed
CommitEmailer: Sync with version running in production server
It looks like the code was edited on the server, but not updated here.
1 parent 6bacf5a commit a3b0398

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

AWS/Lambda/CommitEmailer/commit_emailer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ def lambda_handler(event, context):
175175
# mail_to = os.environ['MAIL_TO']
176176
mail_to = project_path_email[project]
177177

178-
if event['ref'] != "refs/heads/master":
178+
exclude_branches = ['main', 'master']
179+
if not any(x in event['ref'] for x in exclude_branches):
179180
mail_to = LLVM_BRANCH_COMMITS_ADDRESS
180181

181182
# If we're sending an additional email to the same address, break instead
@@ -220,3 +221,4 @@ def lambda_handler(event, context):
220221
'body': response["body"]
221222
}
222223

224+

0 commit comments

Comments
 (0)