Catalog
Pull request governance

Curated governance rules for pull requests

Search Warestack’s public rule catalog, then configure thresholds, reviewer routes, ticket states, and merge behavior for your workspace.

12 curated rules Expression snippets Configurable inputs

Catalog rules

12 rules

Code quality
Pull request

Require concise pull requests

Flag pull requests that exceed the configured maximum lines of code, excluding changes to lock files. e.g. 400, 800

pr.diff.lines_changed > $maxLines

Code quality
Pull request

Require atomic commits

Flag commits that exceed the configured lines of code per commit, regardless of the pull request size. e.g. 400, 800

commit.diff.lines_changed > $maxCommitLines AND commit.type != "chore"

Review process
Pull request

Route review requests based on branch prefixes

Route review requests to specific team members based on configurable pull request branch prefixes. e.g. feat/, fix/, chore/

pr.branch.prefix MATCHES $branchPrefixes THEN pr.reviewer = $reviewerUsername

Review process
Pull request

Route review requests based on file paths

Route review requests to specific team members based on configurable file paths. e.g. src/components/*, .github/workflows/*, src/pages/**

ANY(pr.diff.files_changed) MATCHES $filePathPatterns THEN pr.reviewer = $reviewerUsername

Workflow
Pull request

Detect review fatigue

Flag reviewers who receive more review requests than the configured threshold. e.g. 4, 5

reviewer.pending_review_requests > $maxOpenReviewRequests

Workflow
Pull request

Require a linked ticket

Flag pull requests that are not linked to a Linear or GitHub issue.

pr.linked_ticket IS NULL

Workflow
Pull request

Require linked ticket to be assigned

Flag pull requests with a linked Linear or GitHub issue without an assignee.

pr.linked_ticket IS NOT NULL AND pr.linked_ticket.assignee IS NULL

Workflow
Pull request

Require active linked ticket

Flag pull requests with a linked Linear or GitHub issue that is inactive or not in progress. e.g. In Progress, In Review

pr.linked_ticket IS NOT NULL AND pr.linked_ticket.status NOT IN $activeTicketStatuses

Review process
Pull request

Require timely acknowledgment of review requests

Flag pull requests that do not receive reviews or acknowledgments within the configured time limit. e.g. 24h, 48h

pr.review_ack_hours > $reviewAckHours

Workflow
Pull request

Require timely updates for draft pull requests

Flag draft pull requests as stale when they have no updates within the configured time limit. e.g. 96h, 192h

pr.status = "draft" AND DATEDIFF(hour, pr.updated_at, NOW()) > $draftStaleHours

Review process
Pull request

Require timely acknowledgment of high-priority linked tickets

Flag pull requests that do not receive reviews or acknowledgments within the configured time limit when the linked Linear task is marked as "Urgent" or the linked GitHub issue is tagged as "Critical"/"Urgent". e.g. 12h, 24h

pr.linked_ticket.priority IN ("Critical", "Urgent") AND pr.review_ack_hours > $highPriorityReviewAckHours

Code quality
Pull request

Detect pull request scope drift

Flag pull requests that introduce changes unrelated to the linked Linear or GitHub issue.

pr.scope_similarity = "LOW"

Configuration workflow

From catalog rule to workspace configuration

Pick a curated rule, provide its required inputs, and apply that configuration to the repositories where it should run.

01

Choose a rule

Start with the governance behavior your team wants to validate.

02

Set its configuration

Provide the rule-specific threshold, state list, or reviewer routes.

03

Select the scope

Apply the configuration to the relevant team and repositories.

04

Monitor the result

Review violations and decide whether the GitHub check should gate merge.

Rules validate pull-request governance. A violation blocks merging only when merge blocking is enabled for that configuration and branch protection requires the Warestack Rules check.

Configure governance for your repositories

Sign in to choose a rule, set its inputs, and apply it to the appropriate workspace scope.

Learn how merge checks work →

Warestack

Company

How it worksWhy nowFounders storyWhite PaperPricing

© 2026 Warestack Inc.