GitHub Webhook: Auto-Post Your Commits
With GitHub Webhook integration, you can automatically post your commits, PRs, and releases to BuildInPublic! Focus on coding while automatically building in public.
What Gets Auto-Posted
- Push - Auto-post with commit messages (up to 5 commits shown)
- Pull Request - Posts when PRs are created, merged, or reopened
- Release - Posts when you publish a release with version info
Setup Guide
Step 1: Enable Webhook in BuildInPublic
- Open your project in the dashboard
- Click "Edit"
- Scroll to the "GitHub Webhook" section
- Click "Enable GitHub Webhook"
- Copy the Payload URL and Secret
Step 2: Add Webhook in GitHub
- Open your GitHub repository
- Go to Settings → Webhooks → Add webhook
- Payload URL: Paste the URL from BuildInPublic
- Content type: Select
application/json - Secret: Paste the Secret from BuildInPublic
- Under Which events would you like to trigger this webhook?, select "Let me select individual events"
- Check the following:
- Pushes
- Pull requests
- Releases
- Click "Add webhook"
Step 3: Test It Out
After setup, push a commit to your repository. You'll see an automatic update appear on your BuildInPublic project page!
Security
Webhook requests are verified using HMAC-SHA256 signatures. Fake requests from third parties without the Secret are rejected.
FAQ
Does it work with private repositories?
Yes! Webhooks work regardless of repository visibility. Events are received directly from GitHub, so private repos work perfectly.
Can I customize the post content?
Currently, posts use an auto-generated format. Template customization is planned for a future update.
How do I disable the webhook?
Go to your project edit page, scroll to "GitHub Webhook" section, and click "Disable Webhook". We also recommend removing the webhook from your GitHub repository settings.