mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-20 01:26: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
7
dist/index.js
vendored
7
dist/index.js
vendored
|
@ -160,6 +160,13 @@ require("./sourcemap-register.js");
|
|||
function getPRDetails() {
|
||||
var _a, _b;
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
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(
|
||||
(0, fs_1.readFileSync)(process.env.GITHUB_EVENT_PATH || "", "utf8")
|
||||
);
|
||||
console.log("Github event data:", eventData);
|
||||
const { repository, number } = JSON.parse(
|
||||
(0, fs_1.readFileSync)(process.env.GITHUB_EVENT_PATH || "", "utf8")
|
||||
);
|
||||
|
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -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