Skip to content

Commit 7e5442c

Browse files
chore: add debug logging
1 parent 6987d47 commit 7e5442c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/actions/auto-pr-description/generate_pr_description.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ function splitStringByTokens(str, maxTokens) {
4646
* Split diff into chunks by file boundaries
4747
*/
4848
function chunkDiffByFiles(diffContent) {
49+
console.log('chunkDiffByFiles');
4950
const fileChunks = [];
5051
const lines = diffContent.split('\n');
5152
let currentChunk = '';
@@ -198,6 +199,7 @@ async function callGeminiAPI(prompt, apiKey) {
198199
* Process diff chunks and combine results
199200
*/
200201
async function processChunks(chunks, apiKey) {
202+
console.log('processchunks');
201203
if (chunks.length === 1) {
202204
// Single chunk, process normally
203205
return await callGeminiAPI(createPRPrompt(chunks[0].content), apiKey);

0 commit comments

Comments
 (0)