Skip to main content

Adding a Gogs webhook

Abstract

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.

Admin access only

Only users with the role of admin on the app's team can access all functions of the App Settings page of an app.

  1. Open your app on Bitrise.

  2. Click on App Settings.

  3. On the left, select Integrations.

  4. Click Set up webhooks manually.

  5. In the pop-up window, select Gogs from the dropdown menu.

    apps-webhooks-select.png
  6. Copy the webhook URL.

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

  8. Go to Settings of the project.

  9. Select Webhooks, Add Webhook, then Gogs.

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

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

  12. A Secret is not required at this time.

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

    Adding a Gogs webhook
  14. Click Add Webhook.

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