chore: Fix duplicates job

pull/1905/head
Christian Kußowski 5 months ago
parent b060d70a48
commit 417e3d4b92
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4
- name: Check duplicates
run: |
issues=$(gh issue list --search 'Unable to play video' --json number,title,url | jq -r 'map(select(.number != ${{ env.number }})) | .[] | "- [" + .title + "](" + .url + ")"')
issues=$(gh issue list --search '${{ 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

@ -1,4 +0,0 @@
number=${{ env.number }}
issues=$(gh issue list --search 'Unable to play video' --json number,title,url | jq --arg num "$number" -r 'map(select(.number != ($num | tonumber))) | .[] | "- [" + .title + "](" + .url + ")"')
echo -e "Thanks for reporting @${{ evn.author }}.\nPlease check if this could be a duplicate of one of these issues:\n$issues"
Loading…
Cancel
Save