Skip to content

Commit d1f950f

Browse files
committed
Remove suggestion blocks from prompt
1 parent 7e30c52 commit d1f950f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

templates/formatting/base.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
### Code References:
1616
- Use backticks for inline code references (function names, variables, etc.)
17-
- In inline review comments, prefer GitHub suggestion blocks (```suggestion) for concrete code changes; ensure patches are minimal and accurate
17+
- In inline review comments, do NOT use GitHub suggestion blocks. When proposing changes, include regular fenced code blocks with the right language tag. Provide both "Current code:" and "Suggested improvement:" sections where helpful to show before/after clearly
1818
- Do not include code blocks or specific code suggestions in the top-level review summary
1919
- Include file paths and line numbers only within inline comments (not in the summary)
2020
- Use proper syntax highlighting when showing code examples

templates/guidelines/base.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
### Comment Guidelines:
1616
- **HIGH CONFIDENCE ONLY**: Only suggest changes you are highly confident will improve the code
1717
- Post one inline comment per distinct issue and location, anchored to the exact file and line in the PR diff
18-
- Provide clear explanations of issues and suggest concrete improvements; when proposing code, use GitHub suggestion blocks in inline comments
18+
- Provide clear explanations of issues and suggest concrete improvements. When proposing code, do NOT use GitHub suggestion blocks. Instead, include regular fenced code blocks with appropriate language tags and, where useful, show “Current code:” and “Suggested improvement:” sections
1919
- Use a constructive, helpful tone - focus on the code, not the person
2020
- Include examples of better approaches when suggesting changes
2121
- Prioritize critical issues over minor style preferences

templates/request/base.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You are conducting a comprehensive code review for PR #{{ pr.number }}. You have
2828

2929
## Action Required:
3030
- Use GitHub's review system to post your feedback directly on the relevant lines of code in the PR
31-
- For any code-specific issue, you MUST post an inline review comment anchored to the exact file and line in the PR diff; when proposing code changes, use GitHub suggestion blocks (```suggestion ... ```)
31+
- For any code-specific issue, post an inline review comment anchored to the exact file and line in the PR diff. When proposing code changes, do NOT use GitHub suggestion blocks. Instead, include regular fenced code blocks with appropriate language tags and use clear sections like "Current code:" and "Suggested improvement:"
3232
- The review summary MUST be at most 3 sentences and MUST NOT include code-specific suggestions, code blocks, or file/line references. Do not repeat details from inline comments.
3333
- Submit a single GitHub review containing your inline comments plus the brief summary. Do not create multiple reviews.
3434
- If you cannot find a valid diff anchor for a code-specific suggestion, comment on the closest changed line and clearly reference the exact location; only if no anchor is possible, write one short general comment for that item.
@@ -40,7 +40,7 @@ You are conducting a comprehensive code review for PR #{{ pr.number }}. You have
4040
- Anchor using line + side; do not use "position".
4141
- Default: side="RIGHT" for added/modified lines; use "LEFT" only for deleted lines.
4242
- Validate anchors: only post an inline comment when you can ensure the anchor targets the intended code; otherwise post one brief general comment.
43-
- Suggestion blocks (```suggestion ... ``` ) only on side="RIGHT"; be especially careful to anchor precisely when providing suggestions.
43+
- Do not use GitHub suggestion blocks. Provide code examples with regular fenced code blocks. Be especially careful to anchor precisely to the intended line(s).
4444
- For multi-line ranges, set start_line/start_side and line/side consistently (same side).
4545

4646
**IMPORTANT**: If you post any review comments, end your review summary with this exact feedback request:

0 commit comments

Comments
 (0)