From 7399e66b3cc8828d9e1d883613df6ee3ab1a9f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Bokvad=20Engar=C3=A5s?= Date: Mon, 2 Oct 2023 08:46:43 +0200 Subject: [PATCH] refactor project --- src/branchprotection/BranchProtectionService.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/branchprotection/BranchProtectionService.ts b/src/branchprotection/BranchProtectionService.ts index 6c995c44..3da0ac75 100644 --- a/src/branchprotection/BranchProtectionService.ts +++ b/src/branchprotection/BranchProtectionService.ts @@ -21,6 +21,10 @@ export class BranchProtectionService { 'Branch protection is enabled, number of reviewers are:', response.data.required_pull_request_reviews?.['required_approving_review_count'] ); + core.exportVariable( + 'numberOfReviewers', + response.data.required_pull_request_reviews?.['required_approving_review_count'] + ); }) .catch((error: any) => { console.log('Branch protections is not enabled for repository: ' + repo);