mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-22 10:36:47 +00:00
Adding debugging around the github event data [review]
This commit is contained in:
parent
e987cad08a
commit
b78f41aa62
3 changed files with 16 additions and 1 deletions
|
@ -68,6 +68,14 @@ interface PRDetails {
|
|||
}
|
||||
|
||||
async function getPRDetails(): Promise<PRDetails> {
|
||||
console.log("Fetching pull request details...");
|
||||
console.log("GITHUB_EVENT_PATH:", process.env.GITHUB_EVENT_PATH);
|
||||
console.log("GITHUB_EVENT_NAME:", process.env.GITHUB_EVENT_NAME);
|
||||
const eventData = JSON.parse(
|
||||
readFileSync(process.env.GITHUB_EVENT_PATH || "", "utf8")
|
||||
);
|
||||
console.log("Github event data:", eventData);
|
||||
|
||||
const { repository, number } = JSON.parse(
|
||||
readFileSync(process.env.GITHUB_EVENT_PATH || "", "utf8")
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue