mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-21 01:56:47 +00:00
Fixed eventName usage [review]
This commit is contained in:
parent
7f6dd34aa7
commit
cfdf159e52
3 changed files with 5 additions and 5 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -543,7 +543,7 @@ ${chunk.changes
|
|||
return;
|
||||
}
|
||||
let diff;
|
||||
switch (eventData.action) {
|
||||
switch (eventName) {
|
||||
case "opened":
|
||||
case "push":
|
||||
diff = yield getDiff(
|
||||
|
@ -566,7 +566,7 @@ ${chunk.changes
|
|||
diff = String(response.data);
|
||||
default:
|
||||
console.log(
|
||||
`Unsupported event: action=${eventData.action}, process.env.GITHUB_EVENT_NAME=${process.env.GITHUB_EVENT_NAME}`
|
||||
`Unsupported event: eventName=${eventName}, process.env.GITHUB_EVENT_NAME=${process.env.GITHUB_EVENT_NAME}`
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
|
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