This commit is contained in:
Martin Selbmann 2024-01-24 17:58:17 +05:30 committed by GitHub
commit 06c9240ea8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1308 additions and 1298 deletions

View file

@ -29,6 +29,7 @@ on:
types:
- opened
- synchronize
- review_requested
permissions: write-all
jobs:
review:

3
dist/index.js vendored
View file

@ -195,6 +195,9 @@ function main() {
if (eventData.action === "opened") {
diff = yield getDiff(prDetails.owner, prDetails.repo, prDetails.pull_number);
}
else if (eventData.action === "review_requested") {
diff = yield getDiff(prDetails.owner, prDetails.repo, prDetails.pull_number);
}
else if (eventData.action === "synchronize") {
const newBaseSha = eventData.before;
const newHeadSha = eventData.after;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -194,6 +194,12 @@ async function main() {
prDetails.repo,
prDetails.pull_number
);
} else if (eventData.action === "review_requested") {
diff = await getDiff(
prDetails.owner,
prDetails.repo,
prDetails.pull_number
);
} else if (eventData.action === "synchronize") {
const newBaseSha = eventData.before;
const newHeadSha = eventData.after;