From 2e6aab041a95994cd2fdffb72bb828259a16096d Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Thu, 25 Mar 2021 14:42:21 -0400 Subject: [PATCH] Update label-duplicates.yml --- .github/workflows/label-duplicates.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/label-duplicates.yml b/.github/workflows/label-duplicates.yml index 65aa2da1..bffe2a54 100644 --- a/.github/workflows/label-duplicates.yml +++ b/.github/workflows/label-duplicates.yml @@ -7,12 +7,12 @@ on: jobs: add-labels: runs-on: ubuntu-latest - if: contains(github.event.issue.body, 'Duplicate of') == true + if: contains(github.event.comment.body, 'Duplicate of') == true steps: - name: Add labels uses: actions-cool/issues-helper@v2.2.1 with: actions: 'add-labels' token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.comment.body }} + issue-number: ${{ github.event.issue.number }} labels: 'duplicate'