Skip to content

[Maintenance] Trigger opencode agent on PR review comments containing /oc #252

Description

@RussellSB

Problem

The OC agent workflow doesn't trigger when /oc appears in PR review comments — only PR body comments work. Observed in PR #232 where a review with /oc was submitted but nothing happened.

Root cause

The workflow uses issue_comment events, which only match PR/issue body comments. Review comments use a different event type (pull_request_review or pull_request_review_comment) that isn't in the trigger.

Solution

Add pull_request_review (or pull_request_review_comment) as an additional trigger in the workflow YAML.

Branch target

Targets main, not develop:

git checkout -b ci/oc-review-comment-trigger origin/main

Commit type note

Use chore: or ci: prefix — not fix: or feat: — to avoid triggering a semantic-release bump.

Acceptance criteria

  • /oc in PR review comments triggers the OC agent workflow
  • No false negatives on valid /oc command formats
  • Commit uses chore: or ci: prefix

Backlinks

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement on already existing featuremaintenanceChore related tasks

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions