mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-22 10:36: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
|
@ -279,6 +279,12 @@ async function main() {
|
|||
});
|
||||
|
||||
diff = String(response.data);
|
||||
} else if (eventData.action === "placeholder") {
|
||||
diff = await getDiff(
|
||||
prDetails.owner,
|
||||
prDetails.repo,
|
||||
prDetails.pull_number
|
||||
);
|
||||
} else {
|
||||
console.log(
|
||||
`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