From 50db4d6d0e01cd353a33c634b9faa0ff06d0b125 Mon Sep 17 00:00:00 2001 From: Moby von Briesen Date: Tue, 2 May 2023 19:40:54 -0400 Subject: [PATCH] add template for responding to PR comments --- llm/comment-diff-request.tmpl | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 llm/comment-diff-request.tmpl diff --git a/llm/comment-diff-request.tmpl b/llm/comment-diff-request.tmpl new file mode 100644 index 0000000..8b74f53 --- /dev/null +++ b/llm/comment-diff-request.tmpl @@ -0,0 +1,32 @@ +File: + - name: {{ .Path }}: + contents: + ``` +{{ .Contents }} + ``` + +Diff: +{{ .Diff }} + +Comment: +{{ .Comment }} + +The above is information about a comment left on a file. The diff contains information about the precise location of the comment. + +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 in "Response Template A" +If the comment is a request, modify the file provided at the beginning of the message, and respond exactly as outlined in "Response Template B". + +Response Template A: +Q +[your answer] + +Response Template B: +R +Files: + - name: {{ .Path }} + contents: + [new {{ .Path }} contents] + +Response: +[additional context about your changes]