Skip to content

Webhook Events#

MergeMonkey subscribes to a focused set of events from each provider. This page is the source of truth for what we listen to and why.

GitHub#

EventWhy we need it
pull_requestTrigger new reviews on opened, synchronize, reopened, ready_for_review
issue_commentParse slash commands posted on PRs
pull_request_review_commentTrack inline reply threads on our own comments
pull_request_reviewInvalidate cached reviews when a human reviewer approves
installationProvision / deprovision workspaces when the app is installed / uninstalled
installation_repositoriesAdd or remove repos when a user changes the install's selection
pushDetect force-pushes that rewrite PR history

Action filter#

For pull_request, we only act on these actions:

  • opened — full review
  • synchronize — incremental review
  • reopened — full review
  • ready_for_review — full review (first time a draft becomes ready)

All other actions (edited, assigned, labeled, etc.) are ignored. While a PR is a draft (pull_request.draft: true), opened and synchronize are skipped — ready_for_review triggers its first review.

GitLab#

EventWhy we need it
Merge Request HookTrigger reviews on open, update, reopen
Note HookParse slash commands and track reply threads
Push HookDetect branch deletions and force pushes
System Hook (instance admin)Create / delete users on self-hosted instances

Action filter#

For Merge Request Hook, we act on:

  • open — full review
  • update — incremental review (when new commits arrive)
  • reopen — full review

We also act on approved and unapproved to update review metadata but do not re-review on those transitions.

Draft/WIP MRs (title prefixed Draft:, [Draft], (Draft), or legacy WIP:) are skipped — including pushes — until the marker is removed (the Mark as ready button, the /ready quick action, or a title edit), which triggers the first review even without a new commit.

Signature verification#

Every inbound webhook is signature-verified:

  • GitHub: HMAC-SHA256 over the body, compared against X-Hub-Signature-256. Secret is per-installation.
  • GitLab: The X-Gitlab-Token header must match the project or instance webhook secret.

Invalid signatures return 401 Unauthorized and are logged but not retried.

Delivery retries#

If our ingress returns a 5xx, the provider retries:

  • GitHub: up to 5 times with exponential backoff, over ~24 hours.
  • GitLab: instance-configurable; defaults to 3 attempts with 60-second delay.

If all retries fail, the PR / MR is still reviewable via the provider's "Redeliver" UI — find the delivery under the install settings and click Redeliver.

Events we do NOT subscribe to#

We deliberately skip these to minimize webhook volume and privacy exposure:

  • issues (we only review PRs, not issues)
  • pull_request_review_thread
  • deployment_status
  • check_run
  • workflow_run
  • repository (transfers, renames — we handle these via API lookup when needed)

Next#