a GitHub Integration built with probot that automatically detects duplicate issues so you don't have to.
# Install dependencies
npm install
# Run the bot
npm run
For more information, see the documentation for probot.
The bot will comment with this template by default. You can change it by creating a file in .github/DUPLICATE_ISSUE_TEMPLATE.md
and customizing the contents.
The template uses mustache for rendering, and has two variables available:
payload
: The payload from the issue webhook event.issues
: An array of duplicate issues
-
Install the now CLI with
npm i -g now
-
Create an integration 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. -
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.
-
Download the Private Key and put it in this folder called "prod.pem"
-
Run
now
-
You're up and running