We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4daf35f commit 4194a31Copy full SHA for 4194a31
1 file changed
scripts/auto-approve-dependabot.sh
@@ -39,7 +39,7 @@ echo "$dependabot_prs" | jq -c '.[]' | while read -r pr; do
39
40
# Check if PR only modifies allowed files
41
pr_files=$(gh pr view "$pr_number" -R "$REPO" --json files)
42
- invalid_files=$(echo "$pr_files" | jq -r '.files[].path' | grep -v -E '(Cargo\.toml|Cargo\.lock|package\.json|package-lock\.json)' || true)
+ invalid_files=$(echo "$pr_files" | jq -r '.files[].path' | grep -v -E '(^|/)(Cargo\.toml|Cargo\.lock|package\.json|package-lock\.json)$' || true)
43
44
if [ -n "$invalid_files" ]; then
45
echo " ❌ PR #$pr_number modifies files that are not allowed for auto-merge:"
0 commit comments