Skip to content

Fix: the description check takes the guides answer as a list below the question - #1553

Merged
repeat98 merged 1 commit into
mainfrom
fix/describe-check-list-answer
Nov 14, 2026
Merged

repeat98 merged 1 commit into
mainfrom
fix/describe-check-list-answer

Conversation

@repeat98

Copy link
Copy Markdown
Owner
  • What was wrong or hard: The describe check refused Improvement: npm run device:price measures what a module costs an Octatrack #1552 although its description answered the guides question: the question stood on its own line, ending in its colon, with the answer as a list below it. The rule only took an answer on the question's own line, or below a heading. And nothing checks a description before the pull request is open, because pr:ready cannot see it, so the slip shows as a red check after the push.
  • What this changes:
    • scripts/pr-body.mjs: a guides question that ends in its colon counts as answered when the next line of the author's own text is neither a heading nor another open question. Everything refused before for having no answer is still refused.
    • node scripts/pr-body.mjs FILE.md checks a description that is still in a file. Without an argument it reads PR_BODY as before, so the workflow is unchanged.
    • pr:ready's closing note names that command.
    • This edits a check, so it is for the owner's review. No workflow file is touched.
  • How I checked it:
    • Two new cases in scripts/pr-body.test.mjs: the list answer passes, and the question followed by the next open question is still refused. With the old rule the first case fails.
    • Improvement: npm run device:price measures what a module costs an Octatrack #1552's description as first written: refused by the rule on main, accepted by this one.
    • This description was checked with node scripts/pr-body.mjs before the pull request was opened.
    • npm run pr:ready: Ready on current main.
    • Not done: pr:ready does not run the description check itself when a pull request is already open; it only names the command.
  • What the guides lacked or got wrong, and where I fixed it: nothing in the guides; the gap was in the check and in pr:ready's note, fixed here.

🤖 Generated with Claude Code

…e question

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the bug Something isn't working label Nov 14, 2026
@repeat98
repeat98 enabled auto-merge November 14, 2026 12:42
@repeat98
repeat98 merged commit f5c1d97 into main Nov 14, 2026
13 checks passed
@repeat98
repeat98 deleted the fix/describe-check-list-answer branch November 25, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant