GitHub Webhook Not Triggering for Specific Branch Changes in Monorepo Setup
I'm not sure how to approach I'm experiencing issues with GitHub webhooks not triggering for a specific branch in my monorepo setup. I've configured a webhook to notify my CI service for changes made to the `develop` branch. However, when I push changes to this branch, I don't see any webhook events being sent. Here's a snippet of the webhook configuration: - **Payload URL**: `https://my-ci-service.com/webhook` - **Content type**: `application/json` - **Secret**: `my_secret_key` - **Which events would you like to trigger this webhook?**: `Just the push event.` I've checked the repository settings and made sure that webhooks are enabled. I also verified that the CI service endpoint is reachable and functioning correctly by sending test payloads directly. I tried the following troubleshooting steps: 1. Verified that the webhook is set to listen to the `push` event only. 2. Used the `curl` command to manually send a payload to the CI service and confirmed it works. 3. Checked the webhook delivery logs on GitHub, but there are no entries for the `develop` branch. Interestingly, other branches like `main` trigger the webhook as expected. I'm using GitHub's REST API v3 and the repository is configured using GitHub Actions for CI/CD. Any thoughts on what could be causing the webhook to ignore the `develop` branch? Is there a configuration I might be missing? Additionally, here's the payload structure I expect when the webhook fires: ```json { "ref": "refs/heads/develop", "before": "0000000000000000000000000000000000000000", "after": "a1b2c3d4e5f6g7h8i9j0", "repository": { "id": 123456, "name": "my-repo", "full_name": "user/my-repo" } } ``` Any help would be greatly appreciated! What's the best practice here? Is this even possible? Any suggestions would be helpful.