You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`eslint-github-bot` is a bot created with [probot](https://github.com/probot/probot) which automates some common tasks for repositories run by the ESLint team.
7
6
8
-
The bot can perform the following tasks:
9
-
10
-
***Triage** - adds the "triage" label to newly-created issues which don't have labels.
11
-
***Commit message check** - adds a status check to pull requests to verify that they follow ESLint's [pull request guidelines](https://eslint.org/docs/developer-guide/contributing/pull-requests#step-2-make-your-changes)
12
-
***Needs info** - adds a comment to issues requesting more information when a maintainer adds the `needs info` label.
13
-
***Release/TSC meeting issues** - creates a new issue with the `release`/`tsc meeting` label scheduled two weeks later, after another release/TSC meeting issue is closed.
14
-
***Release monitor** - searches the repository for an issue with the `release` and `patch release pending` labels, indicating that a patch release might soon be created from `master`. If an issue is found, adds a pending status check to all PRs that would require a semver-minor release, to prevent anyone from accidentally merging them.
15
-
***Issue Archiver** - Locks and adds a label to issues which have been closed for a while
16
-
***Issue Closer** - Closes and adds a label to issues which have been inactive for a while
17
-
***WIP Tracking** - adds pending status check for PRs with WIP in the title or with "do not merge" label, and marks the status check as successful once the WIP indicators are removed.
18
-
***PR ready to merge** (experimental) - adds a label to all PRs which are "ready to merge", defined by the following criteria:
19
-
* At least one review is approved.
20
-
* Build status is `success`.
21
-
***Check unit tests** (experimental) - makes sure a PR contains unit tests. This check will be ignored for PRs with `Build|Chore|Docs|Upgrade` in the commit message.
22
-
***Duplicate comments** (inactive) - removes all the duplicates comments by this bot and leaves the last one of each type.
7
+
## Environment Variables:
8
+
9
+
*`APP_ID` (required): The numeric GitHub app ID
10
+
*`PRIVATE_KEY` (required): the contents of the private key you downloaded after creating the app.
11
+
*`WEBHOOK_SECRET` (required): Secret setup for GitHub webhook or you generated when you created the app.
12
+
*`PORT`: Port for web server _(optional, defaults to 8000)_.
23
13
24
14
## :wrench: Setup
25
15
26
-
* Clone this repo.
16
+
* Clone this repo
27
17
*`npm install`
28
-
* Start the app
29
-
*`npm start` to start it as a GitHub APP
18
+
*`npm test`
30
19
31
-
### ENV variables required:
20
+
To start the server locally, you'll need:
32
21
33
-
*`PORT`: Port for web server _(optional, defaults to 8000)_.
34
-
*`SECRET`: Secret setup for GitHub webhook or you generated when you created the app.
35
-
*`PRIVATE_KEY`: the contents of the private key you downloaded after creating the app.
36
-
*`APP_ID`: The numeric app ID
22
+
*A PEM file
23
+
*A `.env` file that specifies the required environment variables
24
+
25
+
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.
37
26
38
27
#### Adding plugins
39
28
@@ -45,4 +34,8 @@ To add a plugin:
45
34
46
35
## Deployment
47
36
48
-
The bot is deployed to a [Dokku](https://dokku.com) instance named github-bot.eslint.org and is installed as a GitHub Application at the organization level.
37
+
The bot is deployed to a [Dokku](https://dokku.com) instance named <https://github-bot.eslint.org> and is installed as a GitHub Application at the organization level.
0 commit comments