Skip to content

docs: run the pull request body check before opening a pull request - #1932

Open
joshunrau wants to merge 1 commit into
DouglasNeuroInformatics:mainfrom
joshunrau:docs/check-pr-body-locally
Open

joshunrau wants to merge 1 commit into
DouglasNeuroInformatics:mainfrom
joshunrau:docs/check-pr-body-locally

Conversation

@joshunrau

Copy link
Copy Markdown
Collaborator

Before an agent opens a pull request or pushes a follow-up, opening-pr now has it run the body workflow's own check on the body file, so a malformed body fails locally instead of .github/workflows/pr-body.yaml closing the PR. Closes #1925.

Changes

  • opening-pr gives a command that builds the event payload from the body file and the current head, lists the branch's commit messages, and runs scripts/check-pr-body.ts on both. The command prints the report the workflow would post, and exits non-zero where the workflow would close the PR. The follow-up steps run the same check before gh pr edit and the push.

Decisions

Notes

I ran the command on this body at its head, and it passed. Two broken copies failed with the workflow's report: one with a one-character change to the stamp, and one with the review block and footer removed.

Adversarial review

Reviewed at commit 9ac5870. pnpm check: green.

Findings

NO REVIEWABLE FILES

Attestation

I, Claude Opus 5.5, attest that the review block above reports the adversarial review as it ran on the commit named, with every finding it returned.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the Status: Waiting on Review Automated: unreviewed, pushed since the last review, or review re-requested label Nov 19, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Waiting on Review Automated: unreviewed, pushed since the last review, or review re-requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The pnpm check cycle costs more than it needs to: an uncacheable e2e tier, a cold-cache lint race, and a PR body check that only runs on CI

1 participant