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

Commit

Permalink
update prompt (#77)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by openai -->
### Summary by OpenAI

Documentation: This pull request updates the prompt message and default
value of `max_files` input in `action.yml`, adds a note about review
comments in pull requests to `README.md`, and clarifies how to interact
with the bot in the tips section of `src/review.ts`. These changes aim
to improve the user experience and provide better guidance on how to use
the bot effectively.
<!-- end of auto-generated comment: release notes by openai -->
  • Loading branch information
harjotgill authored Mar 23, 2023
1 parent 1b9c743 commit 6d70e9b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ Example:

> @openai Can you please review this block of code?

Note: A review comment is a comment made on a diff or a file in the pull
request.

### Screenshots

![PR Summary](./docs/images/openai-pr-summary.png)
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
max_files:
required: false
description: 'Max files to review. Less than or equal to 0 means no limit.'
default: '60'
default: '50'
review_comment_lgtm:
required: false
description: 'Leave comments even if the patch is LGTM'
Expand Down Expand Up @@ -189,7 +189,7 @@ inputs:
default: |
Next, I will send you a series of patches. Each patch consists of a diff snippet,
and your task is to review every patch. Identify any bug risks or provide
improvement suggestions. If the patch looks good and acceptable, please reply
improvement suggestions. Otherwise, if the patch is acceptable, please reply
"LGTM!" with a short comment.
Your responses will be recorded as review comments on the pull request.
Expand Down
5 changes: 3 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/review.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,9 @@ ${filename}: ${summary}
---
Tips:
- Reply on the review comment left by this bot to ask follow-up questions.
- Invite the bot into a review conversation by typing \`@openai\` in the beginning of the comment.
- Reply on review comments left by this bot to ask follow-up questions.
A review comment is a comment on a diff or a file.
- Invite the bot into a review comment chain by tagging \`@openai\` in a reply.
`

next_summarize_ids = summarize_final_response_ids
Expand Down

0 comments on commit 6d70e9b

Please sign in to comment.