mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-20 17:46:47 +00:00
Added an additional condition for new event [review]
This commit is contained in:
parent
88b167a247
commit
e987cad08a
3 changed files with 13 additions and 1 deletions
6
dist/index.js
vendored
6
dist/index.js
vendored
|
@ -375,6 +375,12 @@ ${chunk.changes
|
||||||
head: newHeadSha,
|
head: newHeadSha,
|
||||||
});
|
});
|
||||||
diff = String(response.data);
|
diff = String(response.data);
|
||||||
|
} else if (eventData.action === "placeholder") {
|
||||||
|
diff = yield getDiff(
|
||||||
|
prDetails.owner,
|
||||||
|
prDetails.repo,
|
||||||
|
prDetails.pull_number
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
console.log(
|
console.log(
|
||||||
`Unsupported event: action=${eventData.action}, process.env.GITHUB_EVENT_NAME=${process.env.GITHUB_EVENT_NAME}`
|
`Unsupported event: action=${eventData.action}, process.env.GITHUB_EVENT_NAME=${process.env.GITHUB_EVENT_NAME}`
|
||||||
|
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -279,6 +279,12 @@ async function main() {
|
||||||
});
|
});
|
||||||
|
|
||||||
diff = String(response.data);
|
diff = String(response.data);
|
||||||
|
} else if (eventData.action === "placeholder") {
|
||||||
|
diff = await getDiff(
|
||||||
|
prDetails.owner,
|
||||||
|
prDetails.repo,
|
||||||
|
prDetails.pull_number
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
console.log(
|
console.log(
|
||||||
`Unsupported event: action=${eventData.action}, process.env.GITHUB_EVENT_NAME=${process.env.GITHUB_EVENT_NAME}`
|
`Unsupported event: action=${eventData.action}, process.env.GITHUB_EVENT_NAME=${process.env.GITHUB_EVENT_NAME}`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue