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: types:
- opened - opened
- synchronize - synchronize
- review_requested
permissions: write-all permissions: write-all
jobs: jobs:
review: review:

2597
dist/index.js vendored

File diff suppressed because it is too large Load diff

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.repo,
prDetails.pull_number prDetails.pull_number
); );
} else if (eventData.action === "review_requested") {
diff = await getDiff(
prDetails.owner,
prDetails.repo,
prDetails.pull_number
);
} else if (eventData.action === "synchronize") { } else if (eventData.action === "synchronize") {
const newBaseSha = eventData.before; const newBaseSha = eventData.before;
const newHeadSha = eventData.after; const newHeadSha = eventData.after;