From e46a8227cdbf60c95cc976f9755514e89121e8ee Mon Sep 17 00:00:00 2001 From: niStee <52573120+niStee@users.noreply.github.com> Date: Wed, 12 Aug 2026 22:17:59 +0200 Subject: [PATCH] ci(close-prs): surface bun exit code with ::warning:: on failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wrap the bun script invocation so a non-zero exit code emits a ::warning:: annotation visible in the run log, making the failure mode (GraphQL error, token-scope error, unhandled exception) easier to diagnose without reading the full log. Triage ref: niStee/opencode — close-prs (run #13) --- .github/workflows/close-prs.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/close-prs.yml b/.github/workflows/close-prs.yml index a1e603a88104..eaa481ee8f39 100644 --- a/.github/workflows/close-prs.yml +++ b/.github/workflows/close-prs.yml @@ -47,4 +47,8 @@ jobs: args+=("--execute") fi - bun script/github/close-prs.ts "${args[@]}" + bun script/github/close-prs.ts "${args[@]}" || { + exit_code=$? + echo "::warning::close-prs.ts exited with code $exit_code — check logs for GraphQL/token-scope errors" + exit $exit_code + }