You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pull-requests: read will break comment posting — Both workflows set pull-requests: read, but the opencode action needs to post review comments / issue replies. Without pull-requests: write, posting will fail with a 403. Same issue for issues: write in opencode.yml.
@latest is a floating tag — Both workflows use anomalyco/opencode/github@latest. This will break unexpectedly when a new major version is released. Pin to a specific major version (e.g., @v1) or commit SHA for stability.
No path or branch filter on opencode_review.yml — It triggers on every PR event across all branches. Consider adding paths or branches filters to avoid consuming credits on non-code PRs (docs, config, etc.).
No conditional on opencode.yml fork PRs — issue_comment events from forked PRs run with read-only GITHUB_TOKEN and secrets are not available, so DEEPSEEK_API_KEY will be empty. Add a check like github.event.issue.pull_request.head.repo.fork == false to skip forked PRs, or accept this as expected behavior.
Nitpicks
opencode.yml: Uses contains + startsWith for both /oc and /opencode. startsWith(github.event.comment.body, '/oc') will also match /octopus, etc. Consider a regex or stricter check.
opencode_review.yml has a trailing empty line — minor style inconsistency.
Summary
The integration direction is correct, but permissions and version pinning need fixing before this is ready to merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
How to Prove It Works