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
5 changes: 4 additions & 1 deletion sync/landing.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,10 @@ def unlanded_wpt_commits_by_pr(
wpt_commit = sync_commit.WptCommit(git_wpt, commit.hexsha)
pr = wpt_commit.pr()
extra_commits = []
if pr not in index_by_pr:

# If we fail to identify the PR number or the PR number is set to `0`,
# do not try to group it with other commits.
if pr is None or pr == 0 or pr not in index_by_pr:
pr_data: tuple[int | None, list[WptCommit]] = (pr, [])
# If we have a merge commit, also get the commits merged in
if len(commit.parents) > 1:
Expand Down