Skip to content
Merged
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
4 changes: 4 additions & 0 deletions AWS/Lambda/PREmailer/pr_emailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,10 @@ def lambda_handler(event, context):
project_list = set()
gh_pr = gh.get_repo('llvm/llvm-project').get_issue(pr_number).as_pull_request()
for commit in gh_pr.get_commits():
if len(commit.parents) > 1:
# Ignore merge commits, they will show files changed on main
# unrelated to this PR.
continue
project_list.update(create_project_list([f.filename for f in commit.files], project_path_email))

# Iterate through the list of projects and cross-post if necessary
Expand Down