From 0ae402874464eb82c2750c2cc122b0a06256b2b7 Mon Sep 17 00:00:00 2001 From: 14Richa Date: Tue, 11 Apr 2023 16:18:28 +0530 Subject: [PATCH] changed the reactions count --- .github/workflows/check-reactions-on-pr-and-issues.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-reactions-on-pr-and-issues.yml b/.github/workflows/check-reactions-on-pr-and-issues.yml index 6600d4b3..f34cc2b7 100644 --- a/.github/workflows/check-reactions-on-pr-and-issues.yml +++ b/.github/workflows/check-reactions-on-pr-and-issues.yml @@ -15,7 +15,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} script: | const { owner, repo } = context.repo; - // Check issues with more than 5 reactions + // Check issues with more than 10 reactions const issues = await github.paginate(github.rest.issues.listForRepo.endpoint({ owner, repo, @@ -24,7 +24,7 @@ jobs: for (const issue of issues) { console.log(`Checking issue #${issue.number}`); - if (issue.reactions && issue.reactions.total_count > 5) { + if (issue.reactions && issue.reactions.total_count > 10) { console.log(`Issue #${issue.number} has ${issue.reactions.total_count} reactions`); await github.rest.issues.addLabels({ owner, @@ -34,7 +34,7 @@ jobs: }); } } - // Check pull requests with more than 5 reactions + // Check pull requests with more than 10 reactions const pulls = await github.paginate(github.rest.pulls.list.endpoint({ owner, repo, @@ -43,7 +43,7 @@ jobs: for (const pull of pulls) { console.log(`Checking pull request #${pull.number}`); - if (pull.reactions && pull.reactions.total_count > 5) { + if (pull.reactions && pull.reactions.total_count > 10) { console.log(`Pull request #${pull.number} has ${pull.reactions.total_count} reactions`); await github.rest.issues.addLabels({ owner,