Skip to main content
Pull request triggers run Automations when PR events occur: code changes, reviews, merges. Use them for automated code review, security scanning, documentation updates, and compliance checks.
Pull request triggers require webhooks, which are available on the Enterprise plan only. See Plans and limits.
Supports GitHub and GitLab only. Use a service account for PR Automations to separate Automation activity from human work.

Configuration

Pull request trigger configuration

Webhook

Click Configuration to set up the webhook that connects this Automation to your Git provider. The webhook determines which repositories or organization the Automation listens to. See Webhooks for setup details. If your organization has webhooks enabled, a dropdown appears instead, letting you select an existing webhook or configure a new one.

Runs on

  • Projects (recommended): select projects. The Automation monitors all repositories within them.
  • Repositories: use a search query to filter specific repositories.

Triggers on PR

EventWhen it fires
OpenedNew PR created
UpdatedNew commits pushed
Ready for reviewDraft marked ready
ApprovedReviewer approves
MergedPR merged
ClosedPR closed without merge
Common combinations: Opened + Updated (check every change), Ready for review (analysis before human review), Approved (final validation)

Next steps