diff --git a/src/github.sh b/src/github.sh index d34d5f3..c99bda9 100644 --- a/src/github.sh +++ b/src/github.sh @@ -7,6 +7,11 @@ github::calculate_total_modifications() { local -r files_to_ignore="${2}" local -r ignore_file_deletions="${3}" + echo "pr_number: $pr_number" + echo "files_to_ignore: $files_to_ignore" + echo "files_to_ignore[*]: ${files_to_ignore[*]}" + echo "ignore_file_deletions: $ignore_file_deletions" + local additions=0 local deletions=0 @@ -29,10 +34,10 @@ github::calculate_total_modifications() { filename=$(_jq '.filename') ignore=false - echo "$filename" + # echo "$filename" for pattern in $files_to_ignore; do - echo "$pattern" + # echo "$pattern" if [[ $filename == $pattern ]]; then ignore=true @@ -41,8 +46,8 @@ github::calculate_total_modifications() { done if [ "$ignore" = false ]; then - echo "$(_jq '.additions')" - echo "$(_jq '.deletions')" + # echo "$(_jq '.additions')" + # echo "$(_jq '.deletions')" ((additions += $(_jq '.additions')))