Skip to content

Commit 1769717

Browse files
Merge pull request #712 from LaurentGoderre/fix-stackbrew-pr-change
Improved the change detection logic for the stackbre PR script
2 parents 9f50f45 + 16282e9 commit 1769717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate-stackbrew-pr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function updated() {
3535
local images_changed
3636

3737
IFS=' ' read -ra versions <<< "$(IFS=','; get_versions)"
38-
images_changed=$(git show --name-only "$COMMIT_ID" "${versions[@]}")
38+
images_changed=$(git diff --name-only "$COMMIT_ID".."$COMMIT_ID"~1 "${versions[@]}")
3939

4040
if [ -z "$images_changed" ]; then
4141
return 1

0 commit comments

Comments
 (0)