Adding debugging around the github event data [review]

This commit is contained in:
Jimmy Royer 2024-09-18 12:20:39 -04:00
parent e987cad08a
commit b78f41aa62
3 changed files with 16 additions and 1 deletions

View file

@ -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")
);