mirror of
https://github.com/tiennm99/awesome-coding-agents.git
synced 2026-05-25 11:40:13 +00:00
f0e10d6d26
The blanket git pull --rebase -X theirs in the push-retry loop silently discarded conflicting changes in any file, so a maintainer push to data/agents.yml racing with the daily run could be dropped without warning. Replace it with a selective resolver: plain rebase first, then inspect git diff --name-only --diff-filter=U; if every conflicting path is data/history.jsonl or README.md (both bot-generated), resolve those with --theirs and continue; otherwise abort the rebase and fail the run loudly so the human edit is preserved and visible. Also leave a comment at the permissions block warning future maintainers not to swap GITHUB_TOKEN for a PAT, since the no-recursion invariant is what currently prevents the auto-commit from triggering its own workflow.