feat(github): add ability to react to PR Review Comments in Workflow (#4705)

Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
U Cirello 2025-11-25 21:45:19 -08:00 committed by GitHub
parent 338229193f
commit 0ce64962d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 131 additions and 13 deletions

View file

@ -45,6 +45,8 @@ Or you can set it up manually.
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
jobs:
opencode:
@ -129,3 +131,20 @@ Here are some examples of how you can use opencode in GitHub.
```
opencode will implement the requested change and commit it to the same PR.
- **Review specific code lines**
Leave a comment directly on code lines in the PR's "Files" tab. opencode automatically detects the file, line numbers, and diff context to provide precise responses.
```
[Comment on specific lines in Files tab]
/oc add error handling here
```
When commenting on specific lines, opencode receives:
- The exact file being reviewed
- The specific lines of code
- The surrounding diff context
- Line number information
This allows for more targeted requests without needing to specify file paths or line numbers manually.