From b78b22d8302b798cd40c7a36d3dee4ffb08c6d18 Mon Sep 17 00:00:00 2001 From: johba Date: Fri, 20 Mar 2026 08:33:03 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20fix:=20dev-poll=20backlog=20selection=20?= =?UTF-8?q?is=20LIFO=20=E2=80=94=20should=20be=20FIFO=20(#349)=20(#350)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #349 ## Changes Add &sort=oldest to the backlog API call in dev/dev-poll.sh (line 401) so issues are picked FIFO instead of the Gitea default LIFO order. Co-authored-by: openhands Reviewed-on: https://codeberg.org/johba/disinto/pulls/350 Reviewed-by: Disinto_bot --- dev/dev-poll.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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