Qualitative pre-merge check on PR title and description #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Today the bot has pre-merge checks for CHANGELOG, tests, and no-new-todos, but nothing about the PR-author-provided title and description. A PR with title "fix" and an empty description gets the same treatment as a well-crafted one.
Proposed: add a qualitative pre-merge check (cheap-tier LLM, like the natural-language custom checks already do). Pass criteria, off the top of head:
fix(area):,feat(area):, etc.) where the project's commit conventions use them, ≤72 chars.When the check fails, surface it the same way the other pre-merge checks do — render in the review body's "Pre-merge checks" section. Combined with #7 (pre-merge fail → RequestChanges), a low-quality PR description would block merging until the author improves it.
This is advisory and configurable: opinionated style choices live in the repo's
.auto_review.yaml(pre_merge_checks:already supports natural-language entries — this could just be the canonical default set, or a flag to enable it).Calibration risk: cheap-tier LLMs over-flag. Anchor the prompt to specific failure modes ("title is just a verb without context") and require the model to quote the offending portion verbatim, so authors see exactly what tripped the check.