Skip to content

Commit

Permalink
Last test
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlk committed Apr 15, 2024
1 parent cfc4507 commit d5b6ad1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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')))

Expand Down

0 comments on commit d5b6ad1

Please sign in to comment.