$ git clone https://github.com/electron/trop
$ cd trop
$ npm installTo 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
.envfile (example found here) - Set
WEBHOOK_PROXY_URLin your.envfile to the URL that you are redirected to. - Create a new GitHub App
- Webhook URL:
Use your WEBHOOK_PROXY_URLfrom 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.peminto the repository’s directory - Set your
APP_IDin your.envfile - Update your GitHub App’s Webhook URL to your smee.io URL.
- Run
$ npm startto start the server.
# run the test suite
$ npm test- Always run
$ npm installand 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