mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-21 10:06:47 +00:00
CICO-111286: Add more logs to debug the dup comment issue
This commit is contained in:
parent
33810674fc
commit
fa4ac19d74
3 changed files with 9 additions and 1 deletions
|
@ -83,6 +83,9 @@ async function analyzeCode(
|
|||
): Promise<Array<{ body: string; path: string; line: number }>> {
|
||||
const comments: Array<{ body: string; path: string; line: number }> = [];
|
||||
|
||||
// Log the parsed diff for debugging
|
||||
console.log("Parsed Diff:", JSON.stringify(parsedDiff, null, 2));
|
||||
|
||||
for (const file of parsedDiff) {
|
||||
if (file.to === "/dev/null") continue; // Ignore deleted files
|
||||
for (const chunk of file.chunks) {
|
||||
|
@ -542,6 +545,8 @@ async function main() {
|
|||
|
||||
const parsedDiff = parseDiff(diff);
|
||||
|
||||
console.log("Parsed Diff:", JSON.stringify(parsedDiff, null, 2)); // Log parsed diff for debugging
|
||||
|
||||
const excludePatterns = core
|
||||
.getInput("exclude")
|
||||
.split(",")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue