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

remove goal of this pr from prompts #386

Merged
merged 1 commit into from
Jul 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions dist/index.js

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

24 changes: 15 additions & 9 deletions src/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ $raw_summary

`

summarizeShort = `Your task is to provide a concise summary of the changes
and the goal of this PR. This summary will be used as a prompt while reviewing each
file and must be very clear for the AI bot to understand.
summarizeShort = `Your task is to provide a concise summary of the changes. This
summary will be used as a prompt while reviewing each file and must be very clear for
the AI bot to understand.

Instructions:

- Focus on summarizing only the changes in the PR and stick to the facts.
- Do not provide any instructions to the bot on how to perform the review.
- Do not mention that files need a through review or caution about potential issues.
- Do not mention that these changes affect the logic or functionality of the code.
- The summary should not exceed 250 words.
- The summary should not exceed 500 words.
`

reviewFileDiff = `## GitHub PR Title
Expand All @@ -89,20 +89,26 @@ Instructions:
$description
\`\`\`

## Summary generated by the AI bot
## Summary of changes

\`\`\`
$short_summary
\`\`\`

## How to parse the changes
## Pseudo-code for \`$filename\` before changes

\`\`\`
$file_summary
\`\`\`

## Parsing changes

The format for changes provided below consists of multiple change
sections, each containing a new hunk (annotated with line numbers),
an old hunk, and optionally, existing comment chains. Note that the
old hunk code has been replaced by the new hunk to fulfill the
goal of this PR. The line number annotation on each line in the new
hunk is of the format \`<line_number><colon><whitespace>\`.
old hunk code has been replaced by the new hunk. The line number
annotation on each line in the new hunk is of the
format \`<line_number><colon><whitespace>\`.

### Format for changes

Expand Down