Compare commits

..

1 commit

Author SHA1 Message Date
Agent
9524b849c7 fix: fix: dev-poll should abandon stale branches that are behind main (#148)
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
2026-04-02 13:50:37 +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
# Exit to restart poll cycle (issue will be picked up fresh)
exit 0
# Continue to next orphan (don't spawn agent for stale PR)
continue
fi
PR_SHA=$(curl -sf -H "Authorization: token ${FORGE_TOKEN}" \