|
25 | 25 | # Single Chunk Summary Prompts |
26 | 26 | # ----------------------------------------------------------------------------- |
27 | 27 |
|
28 | | -INITIAL_SUMMARY_SYSTEM = """You are an expert developer writing Git commit messages. |
| 28 | +INITIAL_SUMMARY_SYSTEM = """You are an expert developer writing Git commit messages. |
29 | 29 |
|
30 | | -Given code changes with git patches and metadata (added/removed/modified symbols), write a concise commit message that describes what changed. |
| 30 | +Given a code change with a diff patch and optional metadata (languages, scopes, symbols), write a concise commit message. |
31 | 31 | {message} |
32 | 32 | Rules: |
33 | 33 | - Single line, max 72 characters |
|
48 | 48 |
|
49 | 49 | BATCHED_SUMMARY_SYSTEM = """You are an expert developer writing Git commit messages. |
50 | 50 |
|
51 | | -Given a JSON array of code changes, write a commit message for each one. Each change includes git patches and metadata about added/removed/modified symbols. |
| 51 | +Given multiple code changes (each with diff patches and optional metadata), write one commit message per change. |
52 | 52 | {message} |
53 | 53 | Rules: |
54 | | -- Output a JSON array of strings with one message per input change |
| 54 | +- Output a numbered list with one message per change |
55 | 55 | - Each message: single line, max 72 characters, imperative mood |
56 | | -- Output ONLY the JSON array, no other text |
57 | 56 | - Match the input order exactly |
58 | 57 |
|
59 | | -Example: |
60 | | -Input: [{{"git_patch": "..."}}, {{"git_patch": "..."}}] |
61 | | -Output: ["Add user authentication", "Update config parser"]""" |
| 58 | +Example output: |
| 59 | +1. Add user authentication |
| 60 | +2. Update config parser |
| 61 | +3. Fix memory leak in cache""" |
62 | 62 |
|
63 | 63 | BATCHED_SUMMARY_USER = """Here are {count} code changes: |
64 | 64 |
|
65 | 65 | {changes} |
66 | 66 |
|
67 | | -Provide {count} commit messages as a JSON array:""" |
| 67 | +Provide {count} commit messages as a numbered list:""" |
68 | 68 |
|
69 | 69 |
|
70 | 70 | # ----------------------------------------------------------------------------- |
|
90 | 90 |
|
91 | 91 | BATCHED_CLUSTER_SUMMARY_SYSTEM = """You are an expert developer writing Git commit messages. |
92 | 92 |
|
93 | | -Given a JSON array where each element contains multiple related commit messages, combine each group into one cohesive commit message. |
| 93 | +Given multiple groups of related commit messages, combine each group into one cohesive commit message. |
94 | 94 | {message} |
95 | 95 | Rules: |
96 | | -- Output a JSON array of strings with one message per input group |
| 96 | +- Output a numbered list with one message per group |
97 | 97 | - Each message: single line, max 72 characters, imperative mood |
98 | | -- Output ONLY the JSON array, no other text |
99 | 98 | - Match the input order exactly |
100 | 99 |
|
101 | | -Example: |
102 | | -Input: [["Add login", "Add logout"], ["Fix parser", "Update tests"]] |
103 | | -Output: ["Add authentication system", "Fix parser and update tests"]""" |
| 100 | +Example output: |
| 101 | +1. Add authentication system |
| 102 | +2. Fix parser and update tests""" |
104 | 103 |
|
105 | 104 | BATCHED_CLUSTER_SUMMARY_USER = """Here are {count} groups of related commit messages: |
106 | 105 |
|
107 | 106 | {groups} |
108 | 107 |
|
109 | | -Provide {count} combined commit messages as a JSON array:""" |
| 108 | +Provide {count} combined commit messages as a numbered list:""" |
0 commit comments