Add a webhook automatically to your app on Bitrise whenever
Need a new webhook added to your app on Bitrise? No problem, add a new one automatically whenever you want to.
When you go to the
Code tab of your app, you can setup a webhook manually right away.
To set it up automatically, you’ll need:
- the Service Credential User…
You can setup an SCU on the
- … connected to the right provider
You can see the provider in the top right corner. (For example GitHub)
How to make this happen
Connect your Bitrise profile to the git provider
- You can have all the major providers connected to your Bitrise profile. (GitHub is not connected for our test case below. 🙁 )
- Or you can connect the source code provider on the Code tab by clicking Connect Git account.
Register one 😉
After connecting the Git Account, we’ll check if there is a webhook already registered.
If there isn’t, you’ll be able to
Register a Webhook.
See, the registration of the webhook was successful:
Replacing an old webhook
If you want to add a new one, then go to GitHub, Bitbucket or Gitlab, delete the old one and then open the
Code tab again.
If we “can’t register one”
You might want to check the number of webhooks already registered to the repo as there is a maximum but there is no specific error message for this. Delete an old one and try again.
Happy building! 🚀
Originally published on the Bitrise Blog.