Skip to content

Trigger builds on ready_for_review pull request event #1514

@matcross

Description

@matcross

What feature do you want to see added?

The GitHub Branch Source plugin currently supports filtering draft pull requests (via the "Ignore pull requests marked as drafts"
trait introduced in #416), but it does not trigger new builds when a
draft PR is marked as ready for review.

This creates a workflow gap where:

  1. Draft PRs are correctly ignored (no builds triggered)
  2. When marked ready for review, no build is automatically triggered
  3. Developers must manually trigger builds or wait for the next scheduled scan
  4. Alternatively, developers must push a dummy commit to trigger a build

Please add support for the GitHub ready_for_review webhook event to automatically trigger builds when a draft pull request is marked as
ready for review.

GitHub webhook support:
GitHub's pull request webhooks already include the ready_for_review action type, which fires when a draft PR transitions to ready
status:
{
"action": "ready_for_review",
"pull_request": { ... }
}

Proposed behavior:

  • When a draft PR is created → no build (existing behavior with draft filtering trait)
  • When the PR is marked ready for review → automatic build triggered
  • This would work seamlessly with the existing "Ignore pull requests marked as drafts" trait

Upstream changes

No response

Are you interested in contributing this feature?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions