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:
commit
0490a4b8d8
1 changed files with 8 additions and 1 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue