Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bartozzz/potential-duplicates-bot
A configurable GitHub App which checks for potential issue duplicates using Damerau–Levenshtein distance algorithm.
https://github.com/bartozzz/potential-duplicates-bot
bot duplicates github issues probot probot-app probot-plugin
Last synced: 4 months ago
JSON representation
A configurable GitHub App which checks for potential issue duplicates using Damerau–Levenshtein distance algorithm.
- Host: GitHub
- URL: https://github.com/bartozzz/potential-duplicates-bot
- Owner: Bartozzz
- License: isc
- Created: 2018-03-20T11:41:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-21T10:43:57.000Z (over 5 years ago)
- Last Synced: 2024-10-09T21:05:02.246Z (4 months ago)
- Topics: bot, duplicates, github, issues, probot, probot-app, probot-plugin
- Language: JavaScript
- Homepage:
- Size: 28.3 KB
- Stars: 31
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `potential-duplicates` bot
A simple, configurable bot searching for potential issue duplicates using [Damerau–Levenshtein](https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance) algorithm. The Damerau–Levenshtein distance between two words is the minimum number of operations (consisting of insertions, deletions or substitutions of a single character, or transposition of two adjacent characters) required to change one word into the other. It also detects predefined synonyms for even better results.
![Demo](https://i.imgur.com/mZrLqPe.png)
## Setup
For more information, see the [documentation for Probot](https://github.com/probot/probot).
```bash
$ npm install
$ npm start
```## Usage
~~You need to install [our Github App](https://github.com/apps/potential-duplicates).~~ You can deploy our Github App manually. Then, you can create a custom configuration file at `.github/potential-duplicates.yml`. If this file doesn't exists, default settings will be used:
```yml
# Label name and color to set, when potential duplicates are detected
issueLabel: potential-duplicate
labelColor: cfd3d7# If similarity is higher than this threshold, issue will be marked as duplicate
threshold: 0.60# Comment to post when potential duplicates are detected
referenceComment: >
Potential duplicates:
{{#issues}}
- [#{{ number }}] {{ title }} ({{ accuracy }}%)
{{/issues}}
```## Deploying
If you would like to run your own instance of this app, see the [docs for deployment](https://probot.github.io/docs/deployment/). This app requires both `Issues – Read & Write` and `Single File – Read` (`.github/potential-duplicates.yml`) permissions & events.