MCPcopy
hub / github.com/github/spec-kit / _markdown_value_containing

Function _markdown_value_containing

tests/test_agent_config_consistency.py:70–79  ·  view source on GitHub ↗
(path: str, marker: str)

Source from the content-addressed store, hash-verified

68
69
70def _markdown_value_containing(path: str, marker: str) -> str:
71 template = _issue_template(path)
72 normalized_marker = _normalized_markdown(marker)
73 for item in template["body"]:
74 if item.get("type") != "markdown":
75 continue
76 value = item["attributes"]["value"]
77 if normalized_marker in _normalized_markdown(value):
78 return value
79 raise AssertionError(f"Expected issue template markdown containing {marker!r}")
80
81
82def _markdown_paragraph_containing(path: str, marker: str) -> str:

Callers 1

Calls 3

_issue_templateFunction · 0.85
_normalized_markdownFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected