Skip to content

Commit 33f519a

Browse files
authored
update PR excessive count functionality
1 parent ef0e417 commit 33f519a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ jobs:
5353
result-encoding: string
5454

5555
- name: Send slack message if comment threshold is exceeded
56-
if: steps.get_comments.outputs.totalComments > 20
56+
if: steps.get_comments.outputs.totalComments == 21
5757
uses: slackapi/slack-github-action@v2.1.0
5858
with:
5959
webhook: ${{ secrets.SLACK_PR_COMMENTS_WEBHOOK_URL }}
6060
webhook-type: incoming-webhook
6161
payload: |
62-
"text": "Pull Request #${{ steps.get_comments.outputs.prNumber }} now has over 12 comments.\n<https://github.com/bbc/simorgh/pull/${{ steps.get_comments.outputs.prNumber }}|View Pull Request>\nCurrent comment count: ${{ steps.get_comments.outputs.totalComments }}"
62+
"text": "Pull Request #${{ steps.get_comments.outputs.prNumber }} now has over 20 comments.\n<https://github.com/bbc/simorgh/pull/${{ steps.get_comments.outputs.prNumber }}|View Pull Request>\nCurrent comment count: ${{ steps.get_comments.outputs.totalComments }}"

0 commit comments

Comments
 (0)