Skip to content

fix: use OpenCode CLI directly for PR reviews#211

Merged
himanshu231204 merged 3 commits into
mainfrom
fix/pr-review-fork-permissions
Jul 22, 2026
Merged

fix: use OpenCode CLI directly for PR reviews#211
himanshu231204 merged 3 commits into
mainfrom
fix/pr-review-fork-permissions

Conversation

@himanshu231204

Copy link
Copy Markdown
Member

Summary

Changes the PR review workflow to use OpenCode CLI directly instead of the GitHub Action.

Why

The OpenCode GitHub Action has a hard-coded permission check that verifies the PR author has write access to the repo. External contributors (fork PRs) don't have write access, so the action fails before even trying to post comments.

Solution

  • Install OpenCode CLI directly
  • Run opencode run to generate the review
  • Post the review using gh pr comment with the workflow's GITHUB_TOKEN

This bypasses the permission check entirely and works for all PRs, including forks.

@himanshu231204
himanshu231204 merged commit 0053461 into main Jul 22, 2026
9 of 10 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Congratulations @himanshu231204!

Your pull request has been successfully merged into main. 🚀

Thank you for contributing to OpenAgentHQ and helping improve the project.

We truly appreciate your contribution and hope to see you back with more amazing PRs!

Happy Open Sourcing! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant