mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-21 01:56: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,
|
||||
});
|
||||
diff = String(response.data);
|
||||
} else if (eventData.action === "placeholder") {
|
||||
diff = yield 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}`
|
||||
|
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue