Skip to content

ci(close-prs): surface bun exit code with ::warning:: on failure - #45270

Closed
niStee wants to merge 1 commit into
anomalyco:devfrom
niStee:fix/opencode-close-prs-13
Closed

ci(close-prs): surface bun exit code with ::warning:: on failure#45270
niStee wants to merge 1 commit into
anomalyco:devfrom
niStee:fix/opencode-close-prs-13

Conversation

@niStee

@niStee niStee commented Aug 26, 2026

Copy link
Copy Markdown

Summary

  • Wrap the bun script invocation in the close-prs workflow so a non-zero exit code emits a ::warning:: annotation visible in the run log
  • Makes the failure mode (GraphQL error, token-scope error, unhandled exception) diagnosable without reading the full log

Motivation

Trialed against fork run #13 of close-prs: the workflow failed with no visible signal in the annotation summary; the root cause was only findable by digging through the raw log. This change surfaces such failures as warnings at the job level.

Testing

  • Verified locally that a non-zero bun exit triggers the ::warning:: path (fork run)
  • Syntax-checked workflow YAML

@github-actions github-actions Bot added needs:title needs:compliance This means the issue will auto-close after 2 hours. labels Aug 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hey! Your PR title ci(close-prs): surface bun exit code with ::warning:: on failure doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

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)
@niStee
niStee force-pushed the fix/opencode-close-prs-13 branch from 104e470 to e46a822 Compare August 26, 2026 13:55
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Aug 26, 2026
@github-actions github-actions Bot closed this Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant