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
|
||||
|
||||
# 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)
|
||||
change_count=$(git diff $base_commit...$head_commit --name-only | awk -F"/" '{ print $1}' | uniq | wc -l)
|
||||
# excluding the changelog directory
|
||||
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:
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue