Skip to content

Commit

Permalink
Wait, I might be onto something
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlk committed Apr 15, 2024
1 parent d5b6ad1 commit 3b2f0af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ github::calculate_total_modifications() {
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"
# 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 Down
3 changes: 3 additions & 0 deletions src/labeler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ labeler::label() {
log::message "ignore_file_deletions: $ignore_file_deletions"

local -r pr_number=$(github_actions::get_pr_number)

log::message "pr_number: $pr_number"

local -r total_modifications=$(github::calculate_total_modifications "$pr_number" "${files_to_ignore[*]}" "$ignore_file_deletions")

log::message "Total modifications (additions + deletions): $total_modifications"
Expand Down

0 comments on commit 3b2f0af

Please sign in to comment.