Skip to content

Commit

Permalink
utils: remove diagram headers
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Nov 21, 2024
1 parent c4ea792 commit 96bbbc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ export async function explainPatchHelper (patchBody, owner, repo, models, debug,
} else {
response += `\n\n${diagrams.join('\n')}\n\n</details>\n\n${firstDiagram}\n\n`
}

response = response.replaceAll('### C4 Diagram', '')
response = response.replaceAll('### Sequence Diagram', '')

response += `\n\n<!-- Generated by ${model} -->`
return response
}

0 comments on commit 96bbbc3

Please sign in to comment.