mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-09-09 11:17:08 +00:00
Update main.ts
This commit is contained in:
parent
a9a064dfa1
commit
882835ee60
1 changed files with 6 additions and 0 deletions
|
@ -182,6 +182,12 @@ async function createReviewComment(
|
|||
}
|
||||
|
||||
async function main() {
|
||||
if (!OPENAI_API_KEY || OPENAI_API_KEY.trim() === "") {
|
||||
console.error("❌ OPENAI_API_KEY is missing or empty!");
|
||||
} else {
|
||||
console.log("✅ OPENAI_API_KEY is set.");
|
||||
}
|
||||
console.log(
|
||||
const prDetails = await getPRDetails();
|
||||
let diff: string | null;
|
||||
const eventData = JSON.parse(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue