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

Commit

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

Release Notes:

- New Feature: Added a new format for review comments in the response of
the API, including start and end line numbers.

> "Code reviews made easy,
> With start and end lines so breezy.
> Bugs beware, we'll find you soon,
> Thanks to this PR's boon."
<!-- end of auto-generated comment: release notes by openai -->
  • Loading branch information
harjotgill authored Apr 10, 2023
1 parent 0e0ff9c commit c0b845f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/index.js

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

6 changes: 3 additions & 3 deletions src/review.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,9 @@ Response format expected -
\`\`\`suggestion
<code/text that replaces everything between start_line_number and end_line_number>
\`\`\`
---
<start_line_number>-<end_line_number>:
<review comment>
<new code, if applicable>
\`\`\`<language>
<new code snippet>
Expand All @@ -420,9 +423,6 @@ Example response -
\`\`\`suggestion
print("Hello!")
\`\`\`
\`\`\`go
log.Info().Msgf("Example")
\`\`\`
---
Expand Down

0 comments on commit c0b845f

Please sign in to comment.