You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
recyclarr/ci/code_cleanup.sh

19 lines
518 B

#!/usr/bin/env bash
ref="$1"
changed_files="$(git diff --relative --name-only $ref... | egrep '\.cs$')"
if [[ -z "$changed_files" ]]; then
echo "No changed files detected; skipping code cleanup"
exit 0
fi
echo '--------------------------------------------------'
echo 'Files to be checked for code cleanup:'
echo
echo "$changed_files"
echo '--------------------------------------------------'
jb cleanupcode Recyclarr.sln \
--profile="Recyclarr Cleanup" \
--include="$(echo "$changed_files" | tr '\n' ';')"