diff --git a/dev/dev-poll.sh b/dev/dev-poll.sh index 0c4fd78..120403e 100755 --- a/dev/dev-poll.sh +++ b/dev/dev-poll.sh @@ -398,7 +398,7 @@ done # ============================================================================= log "scanning backlog for ready issues" BACKLOG_JSON=$(curl -sf -H "Authorization: token ${CODEBERG_TOKEN}" \ - "${API}/issues?state=open&labels=backlog&limit=20&type=issues") + "${API}/issues?state=open&labels=backlog&limit=20&type=issues&sort=oldest") BACKLOG_COUNT=$(echo "$BACKLOG_JSON" | jq 'length') if [ "$BACKLOG_COUNT" -eq 0 ]; then