Adding a Gogs webhook

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.

  1. Go to the Code tab of your app’s page and in the INCOMING WEBHOOKS menu, click SETUP MANUALLY.

  2. Select Gogs from the dropdown menu.

    Adding a Gogs webhook
  3. Copy the webhook URL for the selected service.

  4. Open your project on your repository’s hosting URL.

  5. Go to Settings of the project.

  6. Select Webhooks, Add Webhook, then Gogs.

    Adding a Gogs webhook
  7. Specify the bitrise-webhooks URL (.../h/gogs/BITRISE-APP-SLUG/BITRISE-APP-API-TOKEN) in the Payload URL field.

    Adding a Gogs webhook
  8. Set the Content Type to application/json.

  9. A Secret is not required at this time.

  10. Set the trigger to be fired on Just the push event.

    Adding a Gogs webhook
  11. Click Add Webhook.

And you’re done! From now on, every code push to your Gogs repository will trigger a build on Bitrise.