Skip to content

Commit

Permalink
Last try
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlk committed Apr 14, 2024
1 parent ed0a80b commit 6f223a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
m_max_size: '200'
l_max_size: '450'
fail_if_xl: 'true'
files_to_ignore: 'README.md'
files_to_ignore: |
"README.md"
message_if_xl: >
This PR exceeds the recommended size of 1000 lines.
Please make sure you are NOT addressing multiple issues with one PR.
Expand Down
9 changes: 2 additions & 7 deletions src/github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,10 @@ github::calculate_total_modifications() {
done

if [ "$ignore" = false ]; then
add=$(_jq '.additions')
del=$(_jq '.deletions')

((additions += add))
additions=$((additions + add))
((additions += $(_jq '.additions')))

if [ "$ignore_file_deletions" != "true" ]; then
((deletions += del))
deletions=$((deletions + del))
((deletions += $(_jq '.deletions')))
fi
fi
done
Expand Down

0 comments on commit 6f223a1

Please sign in to comment.