[FEATURE]: Auto-assign opencode-agent as PR reviewer #8386

Open
opened 2026-02-16 18:09:50 -05:00 by yindo · 1 comment
Owner

Originally created by @cantalupo555 on GitHub (Feb 2, 2026).

Originally assigned to: @thdxr on GitHub.

Feature Request

When the GitHub agent (opencode-agent[bot]) automatically reviews a pull request via the opencode-review workflow, it would be useful for it to also assign itself as a reviewer on the PR.

Current Behavior

The agent comments on the PR with review feedback (or "lgtm"), but it does not appear in the Reviewers sidebar. There is no indication in the PR metadata that the bot has reviewed the code.

Expected Behavior

After completing the review, opencode-agent[bot] should request itself as a reviewer on the PR using the GitHub API, similar to how other GitHub Apps (e.g., cubic-dev-ai) auto-assign themselves as reviewers.

This would:

  • Make it visible in the PR sidebar that the bot has reviewed the code
  • Allow using branch protection rules that require specific reviewers
  • Improve the developer experience by clearly showing the review status at a glance

Additional Context

The GitHub API endpoint POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers supports GitHub Apps when using the app's own authentication token. This would need to be implemented in the anomalyco/opencode/github action itself.

Originally created by @cantalupo555 on GitHub (Feb 2, 2026). Originally assigned to: @thdxr on GitHub. ## Feature Request When the GitHub agent (`opencode-agent[bot]`) automatically reviews a pull request via the `opencode-review` workflow, it would be useful for it to also assign itself as a **reviewer** on the PR. ## Current Behavior The agent comments on the PR with review feedback (or "lgtm"), but it does not appear in the **Reviewers** sidebar. There is no indication in the PR metadata that the bot has reviewed the code. ## Expected Behavior After completing the review, `opencode-agent[bot]` should request itself as a reviewer on the PR using the GitHub API, similar to how other GitHub Apps (e.g., [cubic-dev-ai](https://github.com/apps/cubic-dev-ai)) auto-assign themselves as reviewers. This would: - Make it visible in the PR sidebar that the bot has reviewed the code - Allow using branch protection rules that require specific reviewers - Improve the developer experience by clearly showing the review status at a glance ## Additional Context The GitHub API endpoint `POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers` supports GitHub Apps when using the app's own authentication token. This would need to be implemented in the `anomalyco/opencode/github` action itself.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 2, 2026):

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

  • #9274: It's possible to re-use opencode-agent as author for GitHub Actions

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 2, 2026): This issue might be a duplicate of existing issues. Please check: - #9274: It's possible to re-use opencode-agent as author for GitHub Actions Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8386