Compare commits

..

1 commit

Author SHA1 Message Date
Agent
9d6f7295ce fix: fix: dev-poll should abandon stale branches that are behind main (#148)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
2026-04-02 13:52:59 +00:00

View file

@ -355,8 +355,8 @@ if [ "$ORPHAN_COUNT" -gt 0 ]; then
# Reset to fresh start on primary branch
git -C "${PROJECT_REPO_ROOT:-}" checkout "${PRIMARY_BRANCH}" 2>/dev/null || true
git -C "${PROJECT_REPO_ROOT:-}" pull --ff-only origin "${PRIMARY_BRANCH}" 2>/dev/null || true
# Continue to next orphan (don't spawn agent for stale PR)
continue
# Exit to restart poll cycle (issue will be picked up fresh)
exit 0
fi
PR_SHA=$(curl -sf -H "Authorization: token ${FORGE_TOKEN}" \