chore: Fix duplicates job
This commit is contained in:
parent
b060d70a48
commit
417e3d4b92
2 changed files with 1 additions and 5 deletions
2
.github/workflows/check_duplicates.yaml
vendored
2
.github/workflows/check_duplicates.yaml
vendored
|
|
@ -16,7 +16,7 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Check duplicates
|
- name: Check duplicates
|
||||||
run: |
|
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
|
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 "Thanks for reporting @${{ env.author }}.\nPlease check if this could be a duplicate of one of these issues:\n$issues"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
4
.github/workflows/playground.sh
vendored
4
.github/workflows/playground.sh
vendored
|
|
@ -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…
Add table
Add a link
Reference in a new issue