diff --git a/.github/workflows/check_duplicates.yaml b/.github/workflows/check_duplicates.yaml index 31260fc19..634171a25 100644 --- a/.github/workflows/check_duplicates.yaml +++ b/.github/workflows/check_duplicates.yaml @@ -16,9 +16,9 @@ jobs: - uses: actions/checkout@v4 - name: Check duplicates run: | - issues=$(gh issue list --search '${{ env.title }}' --json number,title,url | jq -r 'map(select(.number != ${{ env.number }})) | .[] | "- [" + .title + "](" + .url + ")"') + issues=$(gh issue list --search '${{ env.title }}' | grep -v "${{ env.number }}") if [ "$ISSUES" != ""]; then - gh issue comment ${{ github.event.issue.number }} --body "Thanks for reporting @${{ env.author }}.\nPlease check if this could be a duplicate of one of these issues:\n$issues" + gh issue comment ${{ github.event.issue.number }} --body "@${{ env.author }}\nPossible duplication of:\n$issues" fi env: OPENAI_KEY: ${{ secrets.OPENAI_KEY }} \ No newline at end of file