Skip to content

Fix AI PR review trigger and session sharing - #9

Merged
khakisketch merged 1 commit into
mainfrom
harness/pr-review-on-demand
Nov 8, 2026
Merged

khakisketch merged 1 commit into
mainfrom
harness/pr-review-on-demand

Conversation

@khakisketch

Copy link
Copy Markdown
Owner

The pinned OpenCode action only supports issue_comment and pull_request_review_comment; pull_request and workflow_dispatch would fail with 'Unsupported event type'. This changes the workflow to on-demand review.

  • Trigger: PR comment containing /oc or /opencode. No automatic PR review.
  • Add share: false to prevent session sharing on public repositories.
  • Remove workflow_dispatch (no PR context) and the pull_request trigger.
  • Permissions stay contents: read, pull-requests: read, issues: write. Phrase it as code read-only plus review comments, not fully read-only.
  • Requires OPENCODE_API_KEY; a missing key fails only the triggered comment run, not CI.

@khakisketch
khakisketch merged commit 23548d4 into main Nov 8, 2026
1 check passed
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