Skip to content

Detect bots by account type in claude-review instead of enumerating them per caller #158

Description

@kyle-sexton

claude-review.yml decides which PRs to skip by enumerating bot authors by name. Every consumer caller overrides the defaults to add each App as it appears, so introducing a new bot means editing seven callers — and forgetting one means that bot's PRs silently consume review budget.

This is the same maintenance tax the pr-issue-linkage bot exemption deliberately avoided by keying on the author's account type instead of an author list. The two workflows should reach the same answer the same way.

Why this was split out

Deliberately fenced out of the pr-issue-linkage change rather than bundled:

  • Different stakes. A missed review-skip wastes review budget. A missed linkage exemption blocks a merge outright. The gate fix should not wait on the lower-stakes one.
  • Different blast radius. Changing the input contract pulls every consumer caller into the diff, on top of the pin sweep those repositories already owe.

Scope

  • Replace the author-name enumeration with account-type detection in the reusable workflow.
  • Decide the fate of the existing per-caller override inputs — removed outright, or retained as a narrowing escape hatch. Removal is a breaking input-contract change and needs the caller cleanup sequenced with it.
  • Update the workflow's tests and the README section describing the inputs.
  • Drop the now-redundant overrides from each consumer caller.

Open question

Are there bots whose PRs should still be reviewed? Account-type detection skips every bot uniformly, where the current list is per-bot opt-in. Confirm no consumer depends on that distinction before switching.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-humanHuman-in-the-loop required; autonomous sessions must not resolve items carrying this.priority: lowNice-to-have, cosmetic, or speculative; opportunistic.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions