Skip to content

Commit 65454df

Browse files
committed
fix: prevent interactive Aider update and metadata-only PRs
1 parent 83ea968 commit 65454df

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/ai-factory.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ jobs:
7373
git checkout -b "$branch"
7474
jq -r '"Issue: " + .title + "\n\n" + (.body // "")' <<< "$issue" > /tmp/ai-task.txt
7575
echo 'Implement the issue described below. Keep changes minimal, preserve existing APIs, add or update tests, and do not modify workflows, secrets, or access policies.' >> /tmp/ai-task.txt
76-
aider --yes --no-auto-commits --model gpt-4.1 --message-file /tmp/ai-task.txt
77-
if [ -z "$(git status --porcelain)" ]; then echo 'No changes generated'; exit 0; fi
78-
git add -A
76+
CI=1 aider --yes --no-check-update --no-show-release-notes --no-auto-commits --no-pretty --no-stream --chat-history-file /tmp/aider-chat-history.md --input-history-file /tmp/aider-input-history --model gpt-4.1 --message-file /tmp/ai-task.txt
77+
git add -A -- . ':!.aider*' ':!*.log'
78+
if git diff --cached --quiet; then echo 'Agent produced no substantive changes'; exit 1; fi
7979
if git diff --cached --name-only | grep -E '(^|/)(\.github/workflows/|\.env|AGENTS\.md|renovate\.json)' ; then
8080
echo 'Sensitive configuration changes require a separate manual process'; exit 1
8181
fi

0 commit comments

Comments
 (0)