Skip to content

Commit

Permalink
Optomization: skip deleted files (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlk authored Apr 28, 2024
1 parent ba08ddc commit 45c9ed9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ github::get_commit_diff() {
}

filename=$(_jq '.filename')
status=$(_jq '.status')
ignore=false

if [ "$status" == "removed" ]; then
continue
fi

for pattern in $files_to_ignore; do
if [[ $filename == $pattern ]]; then
ignore=true
Expand Down

0 comments on commit 45c9ed9

Please sign in to comment.