https://github.com/marshallofsound/probot-issue-duplicate-detection
A probot plugin for automatic issue duplicate detection
https://github.com/marshallofsound/probot-issue-duplicate-detection
probot probot-app probot-plugin
Last synced: 3 months ago
JSON representation
A probot plugin for automatic issue duplicate detection
- Host: GitHub
- URL: https://github.com/marshallofsound/probot-issue-duplicate-detection
- Owner: MarshallOfSound
- License: isc
- Created: 2017-03-25T14:38:18.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-09-05T21:35:49.000Z (over 2 years ago)
- Last Synced: 2025-01-30T19:13:25.923Z (3 months ago)
- Topics: probot, probot-app, probot-plugin
- Language: JavaScript
- Size: 1.03 MB
- Stars: 34
- Watchers: 4
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Probot Issue Duplicate Detection
> a GitHub Integration built with [probot](https://github.com/probot/probot) that automatically
detects duplicate issues so you don't have to.## Setup
```
# Install dependencies
npm install# Run the bot
npm run
```For more information, see the [documentation for probot](https://github.com/probot/probot).
## Configuring
The bot will comment with [this template](src/template.md) by default. You can change it by creating a file in `.github/DUPLICATE_ISSUE_TEMPLATE.md` and customizing the contents.
The template uses [mustache](https://mustache.github.io/) for rendering, and has two variables available:
- `payload`: The payload from the [issue webhook event](https://developer.github.com/v3/activity/events/types/#issuesevent).
- `issues`: An array of duplicate [issues](https://developer.github.com/v3/issues/#list-issues-for-a-repository)## Deploying to Now
1. Install the now CLI with `npm i -g now`
2. [Create an integration](https://github.com/settings/integrations/new) on GitHub, using `https://[your-now-id].now.sh/`
(replacing `[your-now-id]` with a custom now alias) as the **Homepage URL**, **Callback URL**, and **Webhook URL**.
The permissions and events that your bot needs access to will depend on what you use it for. Read more about
[creating an integration](https://developer.github.com/early-access/integrations/creating-an-integration/).3. After creating your Github integrations, make sure that you click the green install button on the top left
of the integration page.
This gives you an option of installing the integration on all or a subset of your repositories.4. Download the Private Key and put it in this folder called "prod.pem"
5. Run `now`
6. You're up and running