From f0dd4a8229f8b0e667ead720248f3b0f26a2069a Mon Sep 17 00:00:00 2001 From: Kevin Longe <273747162+kvlonge@users.noreply.github.com> Date: Sat, 26 Sep 2026 04:42:35 +0100 Subject: [PATCH] ci: compare pull requests with their merge base when selecting suites --- .github/workflows/verify.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index a6a078e3e1..2a89fc19ee 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -109,7 +109,9 @@ jobs: broad=true ;; esac - done < <(git diff --name-only -z "${BASE_SHA}" "${HEAD_SHA}") + # Three dots: compare with the merge base, so changes that landed on main after the branch + # started are not counted as this pull request's changes. + done < <(git diff --name-only -z "${BASE_SHA}...${HEAD_SHA}") if [[ "${changed}" != "true" ]]; then write_scope true true true true true true