From 7a70e0d36d421a3fec47d04e20c4790f53ad9622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=C3=9Fowski?= Date: Sun, 18 May 2025 11:37:53 +0200 Subject: [PATCH] chore: Fix duplicates job --- .github/workflows/check_duplicates.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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