Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(get-modified-packages): support retrieving diffs without fetching all #299

Merged
merged 2 commits into from
Jun 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
precommit fix
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
M. Fatih Cırıt committed Jun 12, 2024
commit 7c5fa1285fad9d5d868396d9c466fa0673238154
3 changes: 1 addition & 2 deletions get-modified-packages/get-modified-packages.sh
Original file line number Diff line number Diff line change
@@ -49,8 +49,7 @@ function find_package_dir() {
}

# Find modified files from the base branch
modified_files=$(git diff --name-only "$base_branch"...HEAD)
if [ $? -ne 0 ]; then
if ! modified_files=$(git diff --name-only "$base_branch"...HEAD); then
echo -e "\e[31mFailed to determine modified files. Please check if the base branch exists and fetch depth is sufficient.\e[m"
exit 1
fi