mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-09-09 11:17:08 +00:00
Update main.ts
This commit is contained in:
parent
882835ee60
commit
e834b3d3b4
1 changed files with 2 additions and 2 deletions
|
@ -203,7 +203,7 @@ async function main() {
|
|||
} else if (eventData.action === "synchronize") {
|
||||
const newBaseSha = eventData.before;
|
||||
const newHeadSha = eventData.after;
|
||||
|
||||
|
||||
const response = await octokit.repos.compareCommits({
|
||||
headers: {
|
||||
accept: "application/vnd.github.v3.diff",
|
||||
|
@ -213,7 +213,7 @@ async function main() {
|
|||
base: newBaseSha,
|
||||
head: newHeadSha,
|
||||
});
|
||||
|
||||
|
||||
diff = String(response.data);
|
||||
} else {
|
||||
console.log("Unsupported event:", process.env.GITHUB_EVENT_NAME);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue