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#
| Event | Why we need it |
|---|---|
pull_request | Trigger new reviews on opened, synchronize, reopened, ready_for_review |
issue_comment | Parse slash commands posted on PRs |
pull_request_review_comment | Track inline reply threads on our own comments |
pull_request_review | Invalidate cached reviews when a human reviewer approves |
installation | Provision / deprovision workspaces when the app is installed / uninstalled |
installation_repositories | Add or remove repos when a user changes the install's selection |
push | Detect force-pushes that rewrite PR history |
Action filter#
For pull_request, we only act on these actions:
opened— full reviewsynchronize— incremental reviewreopened— full reviewready_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#
| Event | Why we need it |
|---|---|
Merge Request Hook | Trigger reviews on open, update, reopen |
Note Hook | Parse slash commands and track reply threads |
Push Hook | Detect 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 reviewupdate— 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-Tokenheader 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_threaddeployment_statuscheck_runworkflow_runrepository(transfers, renames — we handle these via API lookup when needed)