From 48525c9c74eb79e561bdc46c4e03427025b626a5 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 22 Sep 2026 22:04:46 +0200 Subject: [PATCH] fix(github): let the change gate see new files git diff reports no change for a path whose only change is an untracked file, while open/pr.sh stages that path with `git add` and commits it. Every gated job therefore skipped its PR step whenever an updater added a file instead of editing one. Co-Authored-By: Claude Opus 5 (1M context) --- scripts/github/resolve/check_git_changes.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/github/resolve/check_git_changes.sh b/scripts/github/resolve/check_git_changes.sh index 78bf338122..ce03e771dd 100755 --- a/scripts/github/resolve/check_git_changes.sh +++ b/scripts/github/resolve/check_git_changes.sh @@ -3,7 +3,8 @@ set -euo pipefail : "${GITHUB_OUTPUT:?Missing GITHUB_OUTPUT}" -if git diff --quiet -- "$@"; then +if git diff --quiet -- "$@" && + [[ -z "$(git ls-files --others --exclude-standard -- "$@")" ]]; then echo "changed=false" >>"${GITHUB_OUTPUT}" else echo "changed=true" >>"${GITHUB_OUTPUT}"