Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlk committed Apr 15, 2024
1 parent e39b798 commit 2e0d556
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
m_max_size: '200'
l_max_size: '450'
fail_if_xl: 'true'
files_to_ignore: ''
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
6 changes: 0 additions & 6 deletions src/github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ github::calculate_total_modifications() {
filename=$(_jq '.filename')
ignore=false

# echo "$filename"

for pattern in $files_to_ignore; do
# echo "$pattern"

if [[ $filename == $pattern ]]; then
ignore=true
Expand All @@ -41,9 +38,6 @@ github::calculate_total_modifications() {
done

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

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

if [ "$ignore_file_deletions" != "true" ]; then
Expand Down
2 changes: 1 addition & 1 deletion src/github_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ github_actions::get_pr_number() {
local -r pull_request_number=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")

if [[ "$pull_request_number" != "null" ]]; then
pr_number=$pull_request_number
echo "$pull_request_number"
else
echo "Not a pull request event"
exit 1
Expand Down

0 comments on commit 2e0d556

Please sign in to comment.