backport of commit 163c03f514261627275b1fd36e4b857a108391ac (#23606)
Co-authored-by: Hamid Ghaf <83242695+hghaf099@users.noreply.github.com>
This commit is contained in:
parent
5f2a4083b4
commit
be902639fc
|
@ -26,8 +26,9 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# git diff with ... shows the differences between base_commit and head_commit starting at the last common commit
|
# git diff with ... shows the differences between base_commit and head_commit starting at the last common commit
|
||||||
changed_dir=$(git diff $base_commit...$head_commit --name-only | awk -F"/" '{ print $1}' | uniq)
|
# excluding the changelog directory
|
||||||
change_count=$(git diff $base_commit...$head_commit --name-only | awk -F"/" '{ print $1}' | uniq | wc -l)
|
changed_dir=$(git diff $base_commit...$head_commit --name-only | awk -F"/" '{ print $1}' | uniq | sed '/changelog/d')
|
||||||
|
change_count=$(git diff $base_commit...$head_commit --name-only | awk -F"/" '{ print $1}' | uniq | sed '/changelog/d' | wc -l)
|
||||||
|
|
||||||
# There are 4 main conditions to check:
|
# There are 4 main conditions to check:
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue