mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-19 17:16:48 +00:00
repackage
This commit is contained in:
parent
0939fc4e8d
commit
d585461692
2 changed files with 6 additions and 5 deletions
9
dist/index.js
vendored
9
dist/index.js
vendored
|
@ -210,15 +210,16 @@ function main() {
|
||||||
const newBaseSha = eventData.before;
|
const newBaseSha = eventData.before;
|
||||||
const newHeadSha = eventData.after;
|
const newHeadSha = eventData.after;
|
||||||
const response = yield octokit.repos.compareCommits({
|
const response = yield octokit.repos.compareCommits({
|
||||||
headers: {
|
|
||||||
accept: "application/vnd.github.v3.diff",
|
|
||||||
},
|
|
||||||
owner: prDetails.owner,
|
owner: prDetails.owner,
|
||||||
repo: prDetails.repo,
|
repo: prDetails.repo,
|
||||||
base: newBaseSha,
|
base: newBaseSha,
|
||||||
head: newHeadSha,
|
head: newHeadSha,
|
||||||
});
|
});
|
||||||
diff = String(response.data);
|
diff = response.data.diff_url
|
||||||
|
? yield octokit
|
||||||
|
.request({ url: response.data.diff_url })
|
||||||
|
.then((res) => res.data)
|
||||||
|
: null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log("Unsupported event:", process.env.GITHUB_EVENT_NAME);
|
console.log("Unsupported event:", 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