chore: Fix duplicates job
This commit is contained in:
parent
fc300b74bf
commit
7a70e0d36d
1 changed files with 2 additions and 2 deletions
4
.github/workflows/check_duplicates.yaml
vendored
4
.github/workflows/check_duplicates.yaml
vendored
|
|
@ -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 }}
|
||||
Loading…
Add table
Reference in a new issue