Files
computer-playbook/scripts/github/resolve/check_git_changes.sh
T
kevinveenbirkenbachandClaude Opus 5 48525c9c74 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) <noreply@anthropic.com>
2026-09-22 22:04:46 +02:00

12 lines
278 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
: "${GITHUB_OUTPUT:?Missing GITHUB_OUTPUT}"
if git diff --quiet -- "$@" &&
[[ -z "$(git ls-files --others --exclude-standard -- "$@")" ]]; then
echo "changed=false" >>"${GITHUB_OUTPUT}"
else
echo "changed=true" >>"${GITHUB_OUTPUT}"
fi