Added support for review_requested hook

This commit is contained in:
Martin Selbmann 2024-01-24 13:17:34 +01:00
parent a9a064dfa1
commit 1961761a90
No known key found for this signature in database
GPG key ID: 15AE4E9D9405B454
2 changed files with 7 additions and 0 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:

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;