Estimated setup time: 20 minutes
Mayil’s GitHub integration is simple GitHub app. The general instructions to install a GitHub app is outlined here
Admin/Owner access to your company’s GitHub organization. Or owner privileges to an individual repository. Mayil can run on just one repo or an entire organization. Provide access to all the repos you would like Mayil to process.
Note: GitHub is both an issue tracker and a code store. If your team uses GitHub issues, there are some additional steps you need to follow that are highlighted below.
In the upper-right corner of any page on GitHub, click your profile photo.
Navigate to your account settings.
In the left sidebar, click Developer settings.
In the left sidebar, click GitHub Apps.
Click New Github App
Provide these following detail
<deploment>/api/webhook/github/
where deployment is where Mayil’s backend API was deployed (An example would be https://mayil.companyname/api/webhook/github/
)Provide these permissions-
If your team uses GitHub issues, subscribe to these events-
Click Create GitHub app
Upload the Mayil logo sent with the installation package under Display information
Generate a new private key and save it for later steps
Various details generated during the setup process will need to be copied and provided to Mayil’s backend API as configuration details. Update this JSON block with all the procured information-
Copy the apps App ID
displayed in its overview page into identifier
Run the following command to base64 encode the private key generated previously
and save the output in secret
Enter the webhook_secret entered in the previous step into webhook_secret
After updating these details, upload this data into Vault.