auto-close-duplicate.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Close duplicates
  2. on:
  3. issues:
  4. types: [opened]
  5. jobs:
  6. run:
  7. runs-on: ubuntu-latest
  8. permissions: write-all
  9. steps:
  10. - uses: iv-org/close-potential-duplicates@v1
  11. with:
  12. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  13. # Issue title filter work with anymatch https://www.npmjs.com/package/anymatch.
  14. # Any matched issue will stop detection immediately.
  15. # You can specify multi filters in each line.
  16. filter: ''
  17. # Exclude keywords in title before detecting.
  18. exclude: ''
  19. # Label to set, when potential duplicates are detected.
  20. label: duplicate
  21. # Get issues with state to compare. Supported state: 'all', 'closed', 'open'.
  22. state: open
  23. # If similarity is higher than this threshold([0,1]), issue will be marked as duplicate.
  24. threshold: 0.9
  25. # Reactions to be add to comment when potential duplicates are detected.
  26. # Available reactions: "-1", "+1", "confused", "laugh", "heart", "hooray", "rocket", "eyes"
  27. reactions: ''
  28. close: true
  29. # Comment to post when potential duplicates are detected.
  30. comment: |
  31. Hello, your issue is a duplicate of this/these issue(s): {{#issues}}
  32. - #{{ number }} [accuracy: {{ accuracy }}%]
  33. {{/issues}}
  34. If this is a mistake please explain why and ping @\unixfox, @\SamantazFox and @\TheFrenchGhosty.
  35. Please refrain from opening new issues, it won't help in solving your problem.