summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/content/docs
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-11-25 23:51:46 -0600
committerAiden Cline <[email protected]>2025-11-25 23:51:46 -0600
commit2fbd462e6e35263274e975a2084324b8721f886f (patch)
treec1d19ec2b61e58e88807e36c6f7fbe9d655756c3 /packages/web/src/content/docs
parente1cc98d448f8db971fc2fbed6055839b2f233d2f (diff)
downloadopencode-2fbd462e6e35263274e975a2084324b8721f886f.tar.gz
opencode-2fbd462e6e35263274e975a2084324b8721f886f.zip
Reapply "feat(github): add ability to react to PR Review Comments in Workflow (#4705)"
This reverts commit e1cc98d448f8db971fc2fbed6055839b2f233d2f.
Diffstat (limited to 'packages/web/src/content/docs')
-rw-r--r--packages/web/src/content/docs/github.mdx19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/github.mdx b/packages/web/src/content/docs/github.mdx
index 359f696fc..19c7782ef 100644
--- a/packages/web/src/content/docs/github.mdx
+++ b/packages/web/src/content/docs/github.mdx
@@ -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.