bun dev github run fails with unclear error when no event context is provided #4355

Open
opened 2026-02-16 17:43:33 -05:00 by yindo · 1 comment
Owner

Originally created by @Molaryy on GitHub (Jan 7, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Running bun dev github run without a GitHub Actions event context currently fails with:

Unsupported event type: undefined

This error is misleading. The real issue is that no GitHub event context is available, not that an unsupported event was provided. As a result, users are not guided toward the correct next step, such as running the command inside a GitHub Actions workflow or providing a mock event locally.

Plugins

No response

OpenCode version

No response

Steps to reproduce

bun dev githun run

Screenshot and/or share link

No response

Operating System

macOS 15.6

Terminal

Ghostty

Originally created by @Molaryy on GitHub (Jan 7, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Running `bun dev github run` without a GitHub Actions event context currently fails with: ```sh Unsupported event type: undefined ``` This error is misleading. The real issue is that no GitHub event context is available, not that an unsupported event was provided. As a result, users are not guided toward the correct next step, such as running the command inside a GitHub Actions workflow or providing a mock event locally. ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce ```sh bun dev githun run ``` ### Screenshot and/or share link _No response_ ### Operating System macOS 15.6 ### Terminal Ghostty
yindo added the bug label 2026-02-16 17:43:33 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 7, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #2152: Similar unsupported event type error (though in a different context with pull_request_review)
  • #2549: Related GitHub Actions integration issues (now closed)

The core issue here is the misleading error message when no GitHub event context is available. The message "Unsupported event type: undefined" should be more descriptive, such as "No GitHub event context is available. This command must be run inside a GitHub Actions workflow or with a mock event provided."

@github-actions[bot] commented on GitHub (Jan 7, 2026): This issue might be a duplicate of existing issues. Please check: - #2152: Similar unsupported event type error (though in a different context with pull_request_review) - #2549: Related GitHub Actions integration issues (now closed) The core issue here is the misleading error message when no GitHub event context is available. The message "Unsupported event type: undefined" should be more descriptive, such as "No GitHub event context is available. This command must be run inside a GitHub Actions workflow or with a mock event provided."
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4355