2021-10-01 23:01:28 +03:00
|
|
|
# Attempts to auto-detect weather an issue is a duplicate, and adds a comment
|
|
|
|
name: 🎯 Issue Duplicate Check
|
|
|
|
on:
|
|
|
|
issues:
|
|
|
|
types: [opened, edited]
|
|
|
|
jobs:
|
|
|
|
check-duplicate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: wow-actions/potential-duplicates@v1
|
|
|
|
with:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
|
|
filter: ''
|
|
|
|
exclude: '[BUG] [QUESTION] [FEEDBACK] [SHOWCASE]'
|
|
|
|
label: '🕸️ Potential Duplicate'
|
|
|
|
state: all
|
2021-10-03 23:40:03 +03:00
|
|
|
threshold: 0.75
|
2021-10-01 23:01:28 +03:00
|
|
|
reactions: 'eyes'
|
|
|
|
comment: >
|
|
|
|
Potential duplicates: {{#issues}}
|
|
|
|
- [#{{ number }}] {{ title }} ({{ accuracy }}%)
|
|
|
|
{{/issues}}
|