Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/remove-review-cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"baton": major
---

Remove the dedicated `scripts/review/` CLI, its docs, and its tests. The Copilot workflow
example remains available in `examples/WORKFLOW.copilot.md`.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm ci --foreground-scripts
- run: npm run lint

typecheck:
Expand All @@ -35,7 +35,7 @@ jobs:
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm ci --foreground-scripts
- run: npm run typecheck

test:
Expand All @@ -51,5 +51,5 @@ jobs:
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm ci --foreground-scripts
- run: npm run test
52 changes: 0 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,58 +252,6 @@ npm run triage [TRIAGE.md]
Running every 30 minutes keeps the `ai-ready` queue populated without human intervention — pair
it with a Baton instance polling the same board.

## Review (agent PR review)

The `scripts/review/` companion CLI automates the `Agent Review` loop for Baton-managed pull
requests. It loads `REVIEW.md`, checks the configured GitHub Projects v2 board for issues in the
review state, and runs the review agent against the current PR head inside an isolated workspace.

**Minimal `REVIEW.md` config**

```yaml
tracker:
token: $GITHUB_TOKEN
owner: my-org
owner_type: organization
project_number: 5
status_field: Status
active_states: [Agent Review]

workspace:
root: ~/baton_review_workspaces

hooks:
after_create: |
gh repo clone "$BATON_ISSUE_REPO" . -- --depth 50 --no-single-branch
before_run: |
git fetch origin
BRANCH="agent/$BATON_ISSUE_IDENTIFIER"
git switch -C "$BRANCH" --track "origin/$BRANCH"

agent:
kind: copilot # or: claude_code
```

See [`examples/REVIEW.md`](examples/REVIEW.md) for the full reference config with inline
comments, the review prompt template, and the branch-reset behavior used to review the pushed PR
head.

**Run once**

```sh
npm run review [REVIEW.md]
# or: npx tsx scripts/review/index.ts [REVIEW.md]
```

**Run on a schedule (cron)**

```sh
*/5 * * * * cd /path/to/repo && npx tsx scripts/review/index.ts path/to/REVIEW.md
```

Running every few minutes keeps the review queue moving without manual intervention — pair it with
a Baton implementation workflow that opens and updates the PR.

## How it works (one paragraph)

Every `polling.interval_ms`, Baton queries the configured Project board for issues whose Status is
Expand Down
224 changes: 0 additions & 224 deletions examples/REVIEW.md

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"lint": "biome check .",
"test": "vitest run",
"triage": "tsx scripts/triage/index.ts",
"review": "tsx scripts/review/index.ts",
"version-packages": "changeset version && npm install --package-lock-only"
},
"dependencies": {
Expand Down
51 changes: 0 additions & 51 deletions scripts/review/claude-run.ts

This file was deleted.

Loading
Loading