chore: Fix duplicates job
This commit is contained in:
parent
417e3d4b92
commit
fc300b74bf
1 changed files with 1 additions and 1 deletions
2
.github/workflows/check_duplicates.yaml
vendored
2
.github/workflows/check_duplicates.yaml
vendored
|
|
@ -16,7 +16,7 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- name: Check duplicates
|
||||
run: |
|
||||
issues=$(gh issue list --search '${{ title }}' --json number,title,url | jq -r 'map(select(.number != ${{ env.number }})) | .[] | "- [" + .title + "](" + .url + ")"')
|
||||
issues=$(gh issue list --search '${{ env.title }}' --json number,title,url | jq -r 'map(select(.number != ${{ env.number }})) | .[] | "- [" + .title + "](" + .url + ")"')
|
||||
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"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue