This commit is contained in:
Martin Selbmann 2024-01-24 12:09:59 +00:00 committed by GitHub
commit a02cf695a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

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

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;