eslint-github-bot
is a bot created with probot which automates some common tasks for repositories run by the ESLint team.
APP_ID
(required): The numeric GitHub app IDPRIVATE_KEY
(required): the contents of the private key you downloaded after creating the app.WEBHOOK_SECRET
(required): Secret setup for GitHub webhook or you generated when you created the app.PORT
: Port for web server (optional, defaults to 8000).
- Clone this repo
npm install
npm test
To start the server locally, you'll need:
- A PEM file
- A
.env
file that specifies the required environment variables
The APP_ID
and WEBHOOK_SECRET
need to be present but need not be the registered application ID or webhook secret to start the server. PRIVATE_KEY
must be a valid PEM private key.
To add a plugin:
- Create the plugin as a new file in
src/plugins
. - Add the plugin to the list in
src/plugins/index.js
. - Add the plugin to the list in
src/app.js
to enable it by default.
The bot is deployed to a Dokku instance named https://github-bot.eslint.org and is installed as a GitHub Application at the organization level.
The URL to receive webhooks is the default for Probot, which is /api/github/webhooks
. This must be configured for the app on the ESLint organization.