Setup

Webhooks

Configure GitLab, GitHub, and Jira events that can trigger or resume Bilbis pipelines.

What this means

Webhooks let external tools notify Bilbis when something changes.

Instead of a user manually creating every pipeline, GitLab, GitHub, or Jira can send an event to Bilbis. Bilbis verifies the event with a shared secret or signature, then decides whether the event should start or resume a pipeline.

When to use it

Use webhooks when you want Bilbis to react to:

  • A Jira issue moving into a status such as Ready for AI.
  • A Jira comment that answers a pending clarification.
  • A GitLab issue or merge request event.
  • A GitHub issue, issue comment, pull request, or pull request comment event.
  • A GitLab/GitHub label that should trigger a product-specific pipeline.

Before you start

You need:

  • Owner or admin access in Bilbis.
  • A configured Git provider or Jira integration.
  • A product and at least one repository for Git webhooks.
  • Access to the provider's webhook settings.
  • A long random secret value for each webhook configuration.

Webhook types

WebhookWhere it is configuredWhat it can do
JiraSettings -> Integrations -> Jira, or product Jira overrideTrigger pipelines from issue status changes and resume clarification pipelines from comments.
GitLabProduct detail -> GitLab / GitHub webhook, then GitLab project settingsTrigger or resume pipelines from GitLab events.
GitHubProduct detail -> GitLab / GitHub webhook, then GitHub repository settingsTrigger or resume pipelines from GitHub events.

GitLab and GitHub product webhook fields

These fields live on the product detail page.

FieldWhat it meansDefault
Trigger labelsLabels that tell Bilbis an event should start a pipeline for this product. They must match exactly.ai-ready, bilbis
Enable webhook for this productTurns webhook-triggered pipelines on or off for this product.Off
Default engineEngine used for webhook-triggered pipelines when the event does not specify one.Claude Sonnet
Default task typeTask type used for webhook-triggered pipelines.Feature
Default budget capMaximum spend for webhook-triggered pipelines.$5
GitLab webhook URLBilbis endpoint to paste into GitLab.Shown in the UI
GitHub webhook URLBilbis endpoint to paste into GitHub.Shown in the UI
Signing secretSecret the provider sends so Bilbis can verify the event.Empty until configured

Endpoint reference

Use the URLs shown in Bilbis when possible. Production endpoints are:

https://api.bilbis.ai/api/v1/webhooks/jira
https://api.bilbis.ai/api/v1/webhooks/gitlab
https://api.bilbis.ai/api/v1/webhooks/github

Provider authentication differs:

ProviderSecret or signature
JiraCustom header: X-Jira-Webhook-Token: <secret>
GitLabSecret token header: X-Gitlab-Token: <secret>
GitHubHMAC signature header created by GitHub from the configured secret.

Configure a Jira webhook

  1. Open Settings -> Integrations -> Jira in Bilbis.
  2. Save a webhook secret.
  3. Copy the Jira webhook URL.
  4. In Jira, create a webhook.
  5. Add the custom header X-Jira-Webhook-Token with the Bilbis webhook secret.
  6. Subscribe to issue updated and comment created events.
  7. Save the Jira webhook.

Configure a GitLab webhook

  1. Open the product in Bilbis.
  2. Open the GitLab / GitHub webhook card.
  3. Set trigger labels and pipeline defaults.
  4. Create a long random signing secret and save it in Bilbis.
  5. Copy the GitLab webhook URL.
  6. In GitLab, open the project webhook settings.
  7. Paste the Bilbis URL.
  8. Paste the signing secret as the GitLab secret token.
  9. Subscribe to the events your workflow needs, such as issues, comments, and merge requests.
  10. Save the webhook.

Configure a GitHub webhook

  1. Open the product in Bilbis.
  2. Open the GitLab / GitHub webhook card.
  3. Set trigger labels and pipeline defaults.
  4. Create a long random signing secret and save it in Bilbis.
  5. Copy the GitHub webhook URL.
  6. In GitHub, open the repository webhook settings.
  7. Paste the Bilbis URL.
  8. Set the content type to JSON.
  9. Paste the signing secret.
  10. Subscribe to the events your workflow needs, such as issues, issue comments, and pull requests.
  11. Save the webhook.

What happens next

When a provider sends an event, Bilbis first verifies that the event is authentic. If the secret or signature is missing or wrong, Bilbis rejects the event.

If the event is valid, Bilbis checks whether the event matches your trigger rules. Matching events can start a new pipeline or resume a pipeline that is waiting for clarification.

Problems and fixes

ProblemWhat to check
Provider delivery shows unauthorizedConfirm the secret in the provider matches the secret saved in Bilbis.
GitHub delivery fails signature validationConfirm the GitHub secret is copied exactly and the webhook content type is JSON.
Event reaches Bilbis but no pipeline startsCheck that the label or Jira status exactly matches the configured trigger.
Webhook starts pipelines for the wrong productCheck product mappings in Jira or product-level webhook config for Git providers.
Comment does not resume a pipelineConfirm the pipeline is waiting for clarification and the webhook subscribes to comment events.
Users are unsure which budget appliesWebhook-triggered pipelines use the product webhook default budget unless the event provides a more specific value.

On this page