Merge pull request 'fix: auto-close issues when dev-agent detects already_done' (#42) from fix/close-already-done into main

Reviewed-on: https://codeberg.org/johba/disinto/pulls/42
This commit is contained in:
johba 2026-03-17 10:39:22 +01:00
commit 0490a4b8d8

View file

@ -832,7 +832,14 @@ A maintainer should split this issue or add more detail to the spec."
${REASON}
This issue may be ready to close."
Closing as already implemented."
# Close the issue to prevent retry loops
curl -sf -X PATCH \
-H "Authorization: token ${CODEBERG_TOKEN}" \
-H "Content-Type: application/json" \
"${API}/issues/${ISSUE}" \
-d '{"state":"closed"}' >/dev/null 2>&1 || true
;;
*)
log "unknown refusal status: ${REFUSAL_STATUS}"