Skip to content

Commit f8272b3

Browse files
fix template output (#12)
Co-authored-by: minhlucvanncc <[email protected]>
1 parent 24fbfc9 commit f8272b3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "crgpt",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "CLI tool that leverages ChatGPT API to perform code reviews and providing suggestions for improving code quality.",
55
"keywords": [
66
"crgpt",

src/cli/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ Instructions:
2323
`;
2424

2525
const DEFAULT_SUMMARY = `
26-
## What Changed:
26+
### What Changed:
2727
- Summarize the changes made in general.
2828
- Describe what was added, removed, or modified in a bullet list.
2929
30-
## What's Wrong:
30+
### What's Wrong:
3131
- Identify any issues or problems in the code.
3232
- Point out any potential errors, bugs, or inconsistencies.
3333
- Highlight any potential risks or side effects.
3434
35-
## Recommendations:
35+
### Recommendations:
3636
- Provide recommendations or suggestions for improvement, Only actionable feedback, no general comments.
3737
- Given clear and concise suggestions for improvement, no vague or ambiguous feedback.
3838
- Include any specific tasks or action items that need to be addressed.

src/lib/crgpt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ async function summarizeCRContent(
9898
): Promise<ReviewSumary> {
9999
const header = '# Code Review Summary:';
100100
const fileSummaries = results
101-
.map(({ file, review }) => `### ${file}\n \n${review}`)
101+
.map(({ file, review }) => `## ${file}\n \n${review}`)
102102
.join('\n\n---\n\n');
103103
const content = `${header}\n\n${fileSummaries}`;
104104

0 commit comments

Comments
 (0)