You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/plus/ai/prompts.ts
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -360,10 +360,11 @@ Your task is to group the hunks in unified_diff into a set of commits, ordered i
360
360
361
361
1. Only organize the hunks themselves, not individual lines within hunks.
362
362
2. Group hunks into logical units that make sense together and can be applied atomically.
363
-
3. Ensure each commit is self-contained and only depends on commits that come before it in the new history.
364
-
4. Write meaningful commit messages that accurately describe the changes in each commit.
365
-
5. Provide a detailed explanation of the changes in each commit.
366
-
6. Make sure the new commit history is easy to review and understand.
363
+
3. Use each hunk only once. Use all hunks.
364
+
4. Ensure each commit is self-contained and only depends on commits that come before it in the new history.
365
+
5. Write meaningful commit messages that accurately describe the changes in each commit.
366
+
6. Provide a detailed explanation of the changes in each commit.
367
+
7. Make sure the new commit history is easy to review and understand.
367
368
368
369
Output your new commit history as a JSON array. Each commit in the array should be an object representing a grouping of hunks forming that commit, with the following properties:
369
370
- "message": A string containing the commit message.
@@ -394,5 +395,7 @@ Remember to base your organization of commits solely on the provided unified_dif
394
395
395
396
\${instructions}
396
397
397
-
Now, proceed with your analysis and organization of the commits. Output only the JSON array containing the commits, and nothing else.`,
398
+
Now, proceed with your analysis and organization of the commits. Output only the JSON array containing the commits, and nothing else.
399
+
Do not include any preceeding or succeeding text or markup, such as "Here are the commits:" or "Here is a valid JSON array of commits:".
0 commit comments