mirror of
https://github.com/Pull-Pal/pull-pal.git
synced 2024-06-12 03:10:43 +00:00
update comment diff request prompt template
This commit is contained in:
parent
322fc8d1da
commit
bb2af2fce9
|
@ -18,23 +18,18 @@ The above is information about a comment left on a file. The diff contains infor
|
|||
First, determine if the comment is a question or a request for changes.
|
||||
If the comment is a question, come up with an answer, and respond exactly as outlined directly below "Response Template A".
|
||||
If the comment is a request, modify the file provided at the beginning of the message, and respond exactly as outlined directly below "Response Template B".
|
||||
For either response template, respond in a parseable YAML format. Respond only with YAML, and nothing else.
|
||||
|
||||
Response Template A (Respond in a parseable JSON format):
|
||||
```
|
||||
{
|
||||
"responseType": 0,
|
||||
"response": "[your answer]"
|
||||
}
|
||||
```
|
||||
Response Template A:
|
||||
responseType: 0
|
||||
response: |
|
||||
[your answer]
|
||||
|
||||
Response Template B (Respond in a parseable JSON format):
|
||||
```
|
||||
{
|
||||
"responseType": 1,
|
||||
"file": {
|
||||
"path": "{{ .File.Path }}",
|
||||
"contents": "[new {{ .File.Path }} contents]"
|
||||
},
|
||||
"response": "[additional context about your changes]"
|
||||
}
|
||||
```
|
||||
Response Template B:
|
||||
responseType: 1
|
||||
file:
|
||||
path: {{ .File.Path }}
|
||||
contents: |
|
||||
[new {{ .File.Path }} contents]
|
||||
response: |
|
||||
[additional context about your changes]
|
||||
|
|
Loading…
Reference in New Issue
Block a user