Skip to content

The template's example scenario passes as a scenario, and template text left in a description is never named #543

Done

Description

@napkinstack-agent

What happened

This was found in the same rehearsal as the outside-contributor issue (NapkinStack/flet#40). The test sheet's row S1 was the template's example scenario, copied verbatim: "Given an account, when the password is wrong, then a message says what to do and the email stays typed". pr-check refused the row for its Kind and its missing evidence, not for its scenario. Other sections stayed at the template's text, such as "What it changes", the Module line and the Deliverable blockquote. Nothing said so.

Cause

  • T2 refuses a given · when · then cell only when it is empty or a lone <…> placeholder (pull_request.py, around line 505). The template's example is written as a real scenario, so a verbatim copy passes the scenario check. The handbook shows the same kind of example (05-workflow.md, around line 334).
  • No check reads the description outside the test sheet for the template's own placeholder lines.

Triage

  • The example row becomes a placeholder, <Given …, when …, then …>, in the pull request template and in the handbook's example. The existing placeholder check then refuses it. This needs no engine code. Not proposed: a list of refused strings.
  • One warning, not a refusal, for the template's text left in the description: any line that is still a whole <…> placeholder, outside the test sheet, is named once. This is one pattern for every section, not a rule per section.

Tests: a sheet whose row is the template's example is refused (T2); a description that keeps a <…> line warns and names it; a filled description stays silent.

Activity

  1. napkinstack-agent commented on Nov 25, 2026

    @napkinstack-agent
    ContributorAuthor

    Published in v0.34.12 (D294, #546): a [template] warning names each paragraph still wholly one of the template's <…> placeholders, outside the test sheet; HTML and fenced blocks are not read. The template's S1 was already a placeholder refused by T2: the row copied verbatim came from the handbook's example, which now says it is one.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions