From 331989100e9bcefe7b9b46cfe5e9ff9feeddd4fb Mon Sep 17 00:00:00 2001 From: AdarshVMore Date: Fri, 12 Jun 2026 13:34:32 +0530 Subject: [PATCH] added logs for giphy url finding --- Server/app/worker-service/services/gif.service.ts | 3 +++ Server/app/worker-service/services/review.service.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Server/app/worker-service/services/gif.service.ts b/Server/app/worker-service/services/gif.service.ts index 8d7fa8a..6a48751 100644 --- a/Server/app/worker-service/services/gif.service.ts +++ b/Server/app/worker-service/services/gif.service.ts @@ -9,6 +9,7 @@ export async function findGIF(query: string): Promise { if (!giphyApiKey || !query.trim()) return null; try { + console.log("trying yo find the giphy url...") const response = await axios.get( "https://api.giphy.com/v1/gifs/search", { @@ -20,6 +21,8 @@ export async function findGIF(query: string): Promise { }, ); + console.log("here it is....." , response.data.data[0]?.images.fixed_height.url) + return response.data.data[0]?.images.fixed_height.url ?? null; } catch (error) { console.error("Failed to find GIF for review comment", error); diff --git a/Server/app/worker-service/services/review.service.ts b/Server/app/worker-service/services/review.service.ts index c7942a2..d510de0 100644 --- a/Server/app/worker-service/services/review.service.ts +++ b/Server/app/worker-service/services/review.service.ts @@ -79,8 +79,10 @@ ${arr } async function getReviewGifUrl(summary?: string | null): Promise { + console.log("running getReviewGifUrl .....") try { const gifQuery = await getGifName(summary); + console.log("found gifQuery , " , gifQuery) return await findGIF(gifQuery); } catch (error) { console.error("Skipping review GIF", error); @@ -141,6 +143,7 @@ export async function runPRReview(data: PRReviewJobData) { const gifUrl = await getReviewGifUrl(parsedPrompt.summary); const commentBody = formatReviewComment(parsedPrompt, gifUrl); + console.log("adding this comment body : \n\n", commentBody) await octokit.issues.createComment({ owner, repo,