diff --git a/.github/workflows/label-duplicates.yml b/.github/workflows/label-duplicates.yml new file mode 100644 index 00000000..3734c9cd --- /dev/null +++ b/.github/workflows/label-duplicates.yml @@ -0,0 +1,18 @@ +name: Label duplicates + +on: + issue_comment: + types: [created] + +jobs: + add-labels: + runs-on: ubuntu-latest + if: contains(github.event.issue.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.issue.number }} + labels: 'duplicate'