Merge pull request #712 from LaurentGoderre/fix-stackbrew-pr-change
Improved the change detection logic for the stackbre PR script
This commit is contained in:
commit
17697173a1
|
|
@ -35,7 +35,7 @@ function updated() {
|
||||||
local images_changed
|
local images_changed
|
||||||
|
|
||||||
IFS=' ' read -ra versions <<< "$(IFS=','; get_versions)"
|
IFS=' ' read -ra versions <<< "$(IFS=','; get_versions)"
|
||||||
images_changed=$(git show --name-only "$COMMIT_ID" "${versions[@]}")
|
images_changed=$(git diff --name-only "$COMMIT_ID".."$COMMIT_ID"~1 "${versions[@]}")
|
||||||
|
|
||||||
if [ -z "$images_changed" ]; then
|
if [ -z "$images_changed" ]; then
|
||||||
return 1
|
return 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue