Adding a Gogs webhook
You can specify webhooks on Gogs so that Bitrise automatically triggers a build of your app whenever you perform a specified action, such as a code push or a pull request.
You can set up webhooks so that Bitrise automatically triggers a build of your app whenever you perform a specified action. For Gogs, all you have to do is register your bitrise-webhooks
URL as a Webhook in your Gogs
repository.
-
Open your app on Bitrise with a user that has the Admin role on the app's team.
-
On the main page of the app, click on the App Settings icon: .
-
On the left, select Integrations.
-
Click
. -
In the pop-up window, select Gogs from the dropdown menu.
-
Copy the webhook URL.
-
Open your project on your repository’s hosting URL.
-
Go to Settings of the project.
-
Select Webhooks, Add Webhook, then Gogs.
-
Specify the
bitrise-webhooks
URL (.../h/gogs/BITRISE-APP-SLUG/BITRISE-APP-API-TOKEN
) in the Payload URL field. -
Set the Content Type to
application/json
. -
A Secret is not required at this time.
-
Set the trigger to be fired on Just the push event.
-
Click Add Webhook.
And you’re done! From now on, every code push to your Gogs repository will trigger a build on Bitrise.