From 7887c9aaa2dd26dc5d21de7a9b5b7c21f3dd1cbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wr=C3=B3blewski?= Date: Sat, 12 Sep 2026 22:38:33 +0200 Subject: [PATCH] The outage issue says when the site came back (#167) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The first drill of the outside check (#188) opened its issue, locked it, and closed it again when the address answered — without the comment saying when. A locked issue refuses comments from the workflow's own token too ("Unable to create comment because issue is locked"), and the `|| true` from the review round hid it. The recovery now unlocks for the one comment and locks again after; a comment that still fails warns in the run, and the issue closes regardless, because its open-or-closed state is the answer people read. Co-Authored-By: Claude Opus 5 --- .github/workflows/watch.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/watch.yml b/.github/workflows/watch.yml index 6b3715d..c1093a9 100644 --- a/.github/workflows/watch.yml +++ b/.github/workflows/watch.yml @@ -101,12 +101,17 @@ jobs: "" \ "@$OWNER")") # Locked: the thread notifies the owner, so it is not a place for - # anyone passing by to post "run this to fix it". Collaborators — - # and this workflow — can still write in it. + # anyone passing by to post "run this to fix it". gh issue lock "$issue" || true elif [ "$up" = true ] && [ -n "$open" ]; then - gh issue comment "$open" --body "Answering again at $now (\`$CODE\`)." || true + # A locked issue refuses comments from this workflow too — the + # first drill (#188) closed its issue without saying when the site + # came back. Unlocked for the one comment, locked again after. + gh issue unlock "$open" || true + gh issue comment "$open" --body "Answering again at $now (\`$CODE\`)." || + echo "::warning::the recovery comment was not posted; the issue is closed anyway, since its state is the answer" gh issue close "$open" + gh issue lock "$open" || true else echo "nothing changed: up=$up, open $LABEL issue: ${open:-none}" fi