We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3b0398 commit a88bf73Copy full SHA for a88bf73
AWS/Lambda/CommitEmailer/commit_emailer.py
@@ -175,8 +175,13 @@ def lambda_handler(event, context):
175
# mail_to = os.environ['MAIL_TO']
176
mail_to = project_path_email[project]
177
178
- exclude_branches = ['main', 'master']
179
- if not any(x in event['ref'] for x in exclude_branches):
+ # Never send mail about personal branches
+ if event['ref'].startswith('refs/heads/users/'):
180
+ break
181
+
182
+ # Everything else on a non-trunk branch should be re-directed to the *branch* commits list
183
+ trunk_branches = ['refs/heads/main', 'refs/heads/master']
184
+ if not event['ref'] in trunk_branches:
185
mail_to = LLVM_BRANCH_COMMITS_ADDRESS
186
187
# If we're sending an additional email to the same address, break instead
0 commit comments