Github Event Webhook

Add a controller for importing events from github

https://kastor.lab.numigi.net/web/image/product.template/991/image_1920?unique=0a81b40
  • Odoo Version

Conditions générales
Garantie satisfait ou remboursé de 30 jours
Expédition : 2-3 jours ouvrables

Github Event Webhook

This module defines an HTTP controller to register events in Odoo using github webhook.

Each event is processed asynchronously in a queue job.

Configuration

Define your Secret

First, generate a secret that will be used to authentify the webhook with your Odoo instance. You may use the tool of your choice to create the secret.

Then, create a system parameter:

  • Key: github_pull_request.github_secret
  • Value: Your secret
static/description/webhook_secret_parameter.png

Setup the Webhook

Then, in Github, setup the webhook.

static/description/github_webhook_example.png
  • Payload URL: {base_url}/web/github/event
  • Content Type: application/x-www-form-urlencoded
  • Secret: Your secret

In the section Which events would you like to trigger this webhook?, select Let me select individual events, then check Pull requests.

Contributors