Skip to content

Commit 4873881

Browse files
committed
Improve AI_PROMPT_INJECT_PLACEHOLDER even further
1 parent f2d3128 commit 4873881

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

git-grok

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ AI_WHO_YOU_ARE = """
6161
informative pull request descriptions.
6262
"""
6363
AI_PROMPT_INJECT_PLACEHOLDER = f"""
64+
# INSTRUCTIONS
65+
6466
I am passing you the Pull Request Template text. Modify it according to the
6567
instructions below and return the text back to me.
6668
@@ -82,6 +84,38 @@ AI_PROMPT_INJECT_PLACEHOLDER = f"""
8284
- Only include the response text in that part. Don't add any comments or
8385
thoughts, just the text of the PR template with the "{AI_PLACEHOLDER}"
8486
marker injected at the best place.
87+
88+
# EXAMPLE 1
89+
90+
Input:
91+
92+
## Summary
93+
94+
## How was this tested?
95+
96+
Output I expect from you:
97+
98+
## Summary
99+
100+
{AI_PLACEHOLDER}
101+
102+
## How was this tested?
103+
104+
# EXAMPLE 2
105+
106+
Input:
107+
108+
Overview
109+
110+
Something else
111+
112+
Output I expect from you:
113+
114+
Overview
115+
116+
{AI_PLACEHOLDER}
117+
118+
Something else
85119
"""
86120
AI_PROMPT_GENERATE_SUMMARY = f"""
87121
I am passing you the Pull Request Title and the code diff. Generate the Pull

0 commit comments

Comments
 (0)