If you are building whitelabel applications using AppCenter and Github, you will struggle to get past 20 webhooks on one Github repository.
More info on this issue is here:
This lambda reads the push event data from Github and fires off a POST request to build your apps on AppCenter.
- Use Branch configuration API to check if the branch has been configured. (API call here)
- You will need to connect your app to Github via AppCenter and configure builds for the specific branches you want to build from.
- You need to delete the webhook that AppCenter/Github creates on the repository you are building from, this keeps the App Center <-> Github connection but removes the webhook.
- Add your Lambda Webhook URL using AWS API Gateway.
- Add your App Center
X-API-TOKENto the Lambda enviroment variables.