This repository is currently configured for deployment of the Zendesk term-check bot. To deploy your own instance:
Your deployment will need a corresponding GitHub App.
- Create your new GitHub App.
- Basic info:
- Add a name for your application.
- Set "Homepage URL" to the cloned repository of the app.
- Leave "Webhook URL" blank for now.
- Generate a "Webhook Secret" with
openssl rand -base64 32
and save it for later use in deployment.
- Permissions
- Your app will need the following repository permissions:
- Checks: Read & write
- Contents: Read-only
- Metadata: Read-only
- Pull requests: Read & write
- It will also need the following event subscriptions:
- Check run
- Pull request
- Your app will need the following repository permissions:
- Basic info:
- Download the private key of the application.
- Install the app on whichever repositories you want.
- Change the config.yaml file to match your own app's configuration and preferences.
- Set
appID
to the one given by your newly created app. - Set
privateKeyPath
to be the path to the downloaded private key when your app is deployed.
- Set
- Populate secret values
- The bot expects the secret values
PRIVATE_KEY
andWEBHOOK_SECRET_KEY
to be in files in asecrets/<Secret Name>
, where each file contains the file name's corresponding value.
- The bot expects the secret values
- Deploy the app on a platform of your choice. This repo contains configuration files for a GCB and Kubernetes deployment process, but they would have to be tweaked for your own purposes. Once the application is deployed, update the GitHub App's "Webhook URL" to point to the url of your deployment.