BlueGit

ict rusty-teams

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>

metis Daniel Däschle · pushed by metis

Authored 2026-11-25 · 6 days ago

Hash
184914cb08d682988c143cc742fcbbda4609d9bb
Parent
faad0468
1 file changed +3 −2
.github/scripts/pr_gate.py +3 −2
@@ -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)