Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Commit d6f4471

Browse files
authored
Review comment context (#50)
<!-- This is an auto-generated comment: release notes by openai --> ### Summary by OpenAI New Feature: This pull request adds functionality to get existing comments on a line and use them in the review. This feature will help reviewers to have better context while reviewing code changes. <!-- end of auto-generated comment: release notes by openai -->
1 parent 3f4d301 commit d6f4471

File tree

6 files changed

+267
-144
lines changed

6 files changed

+267
-144
lines changed

action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,13 @@ inputs:
190190
default: |
191191
$filename
192192
193+
Existing comments on the patch, though some of them may be outdated.
194+
Please use them as additional context.
195+
```
196+
$comment_chain
197+
```
198+
199+
Diff for review:
193200
```diff
194201
$patch
195202
```
@@ -259,7 +266,8 @@ inputs:
259266
```
260267
261268
Please reply directly to the new comment in the conversation
262-
chain without extra prose as that reply will be posted as-is.
269+
chain (instead of suggesting a reply) and your reply will be
270+
posted as-is.
263271
264272
In your reply, please make sure to begin the reply by
265273
tagging the user with "@user".

dist/index.js

Lines changed: 107 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)