Code Maestro, as an AI coding assistant, relies on up-to-date context from your repository to provide accurate and relevant suggestions. Setting up a webhook ensures that Code Maestro is notified of changes in your repository, such as updates to tracked branches, keeping its understanding in sync with your codebase. Follow these steps to configure the webhook in GitHub or GitLab.
For GitHub
- Go to your repository's Settings.
- Navigate to the Webhooks section in the left sidebar and click Add webhook.
- In the Payload URL field, enter:
https://api.prod.code-maestro.com/projects/git-webhook
- In the Secret field, paste the token provided by Code Maestro team
- Select the Content type as
application/json
.
- Choose Let me select individual events, and check Push events.Optionally, specify branches to track (recommended: branches synced with Code Maestro).
- Click Add webhook.
For GitLab
- Go to your repository's Settings > Webhooks.
- In the URL field, enter:
https://api.prod.code-maestro.com/projects/git-webhook
- In the Secret Token field, paste the token provided by Code Maestro team
- Check the Push events option.Optionally, specify branches to track (recommended: branches synced with Code Maestro).
- Click Add webhook.