potential-duplicates.yml 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. name: Potential Duplicates
  2. on:
  3. issues:
  4. types: [opened]
  5. jobs:
  6. run:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: wow-actions/potential-duplicates@v1
  10. with:
  11. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  12. # Issue title filter work with anymatch https://www.npmjs.com/package/anymatch.
  13. # Any matched issue will stop detection immediately.
  14. # You can specify multi filters in each line.
  15. filter: ""
  16. # Exclude keywords in title before detecting.
  17. exclude: ""
  18. # Label to set, when potential duplicates are detected.
  19. label: potential-duplicate
  20. # Get issues with state to compare. Supported state: 'all', 'closed', 'open'.
  21. state: all
  22. # If similarity is higher than this threshold([0,1]), issue will be marked as duplicate.
  23. threshold: 0.6
  24. # Reactions to be add to comment when potential duplicates are detected.
  25. # Available reactions: "-1", "+1", "confused", "laugh", "heart", "hooray", "rocket", "eyes"
  26. #reactions: 'eyes, confused'
  27. # Comment to post when potential duplicates are detected.
  28. comment: >
  29. Potential duplicates: {{#issues}}
  30. - [#{{ number }}] {{ title }} ({{ accuracy }}%)
  31. {{/issues}}