$ git clone https://github.com/electron/trop
$ cd trop
$ npm install
To run your app in development, you will need to configure a GitHub App to deliver webhooks to your local machine.
- Go to smee.io and click Start a new channel.
- Create a
.env
file (example found here) - Set
WEBHOOK_PROXY_URL
in your.env
file to the URL that you are redirected to. - Create a new GitHub App
- Webhook URL:
Use your WEBHOOK_PROXY_URL
from the previous step. - Webhook Secret:
development
- Permissions: Dependent on your use case
- If you enable excess permissions during development, remember to remove them in production.
- Download the private key as
private-key.pem
into the repository’s directory - Set your
APP_ID
in your.env
file - Update your GitHub App’s Webhook URL to your smee.io URL.
- Run
$ npm start
to start the server.
# run the test suite
$ npm test
- Always run
$ npm install
and restart the server if package.json has changed.
- To turn on verbose logging, start server by running: $ LOG_LEVEL=trace npm start
-
robot.log('some text')
is your friend. -
To test changes without triggering events on a real repository, see simulating webhooks