fix(ci): the PR gate asks for a Problem section, not an issue
- The note read as if every PR needs an issue; a fix needs only the Problem section Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -131,8 +131,9 @@ def check(pull_request: PullRequest) -> list[str]:
131
131
problem = find_section(sections, "Problem") or ""
132
132
if len(problem) < MIN_PROBLEM_CHARACTERS:
133
133
missing.append(
134
"**Problem**: no linked issue (`Closes #123`), so a `## Problem` section must describe it: "
135
"what is wrong or missing, when a user hits it (steps or when/then) and what should happen instead."
134
"**Problem**: add a `## Problem` section: what is wrong or missing, when a user hits it "
135
"(steps or when/then) and what should happen instead. A fix needs no issue; "
136
"a linked issue (`Closes #123`) replaces this section."
136
137
)
137
138
138
139
size = changed_lines(pull_request.files)
@@ -131,8 +131,9 @@ def check(pull_request: PullRequest) -> list[str]:131
problem = find_section(sections, "Problem") or ""131
problem = find_section(sections, "Problem") or ""132
if len(problem) < MIN_PROBLEM_CHARACTERS:132
if len(problem) < MIN_PROBLEM_CHARACTERS:133
missing.append(133
missing.append(134
"**Problem**: no linked issue (`Closes #123`), so a `## Problem` section must describe it: "134
"**Problem**: add a `## Problem` section: what is wrong or missing, when a user hits it "135
"what is wrong or missing, when a user hits it (steps or when/then) and what should happen instead."135
"(steps or when/then) and what should happen instead. A fix needs no issue; "136
"a linked issue (`Closes #123`) replaces this section."136
)137
)137
138
138
size = changed_lines(pull_request.files)139
size = changed_lines(pull_request.files)