Skip to content

Commit

Permalink
ci: stricter filename checking in diff generation (#3801)
Browse files Browse the repository at this point in the history
  • Loading branch information
krtk6160 authored Jan 9, 2024
1 parent 0843e94 commit 4232a5b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/apps/tasks/open-charts-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ for commit in $(git log --format="%H" ${old_ref}..${ref}); do
changed_files=$(git diff-tree --no-commit-id --name-only -r $commit)

for file in ${changed_files[@]}; do
if [[ " ${app_src_files[*]} " == *"$file"* ]]; then
if printf '%s\n' "${app_src_files[@]}" | grep -Fxq "$file"; then
relevant_commits+=($commit)
break
fi
Expand Down
2 changes: 1 addition & 1 deletion ci/core/tasks/open-charts-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ for commit in $(git log --format="%H" ${old_ref}..${ref}); do
changed_files=$(git diff-tree --no-commit-id --name-only -r $commit)

for file in ${changed_files[@]}; do
if [[ " ${app_src_files[*]} " == *"$file"* ]]; then
if printf '%s\n' "${app_src_files[@]}" | grep -Fxq "$file"; then
relevant_commits+=($commit)
break
fi
Expand Down
2 changes: 1 addition & 1 deletion ci/tasks/open-charts-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ for commit in $(git log --format="%H" ${old_ref}..${ref}); do
changed_files=$(git diff-tree --no-commit-id --name-only -r $commit)

for file in ${changed_files[@]}; do
if [[ " ${app_src_files[*]} " == *"$file"* ]]; then
if printf '%s\n' "${app_src_files[@]}" | grep -Fxq "$file"; then
relevant_commits+=($commit)
break
fi
Expand Down

0 comments on commit 4232a5b

Please sign in to comment.