From 38c4d707de565a61de2a0cd1dd8cc66c15f635bc Mon Sep 17 00:00:00 2001 From: Martin Selbmann Date: Wed, 24 Jan 2024 13:03:53 +0100 Subject: [PATCH 1/2] Added Hook for review_requested --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 566a3ea1..6e900195 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ on: types: - opened - synchronize + - review_requested permissions: write-all jobs: review: From a0f32eab7c2bd8067e4db75b50f3ed98cece6dc7 Mon Sep 17 00:00:00 2001 From: Martin Selbmann Date: Wed, 24 Jan 2024 13:06:11 +0100 Subject: [PATCH 2/2] Added action --- src/main.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.ts b/src/main.ts index 13677ae4..d2dade02 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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;