(path: str, marker: str)
| 68 | |
| 69 | |
| 70 | def _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 | |
| 82 | def _markdown_paragraph_containing(path: str, marker: str) -> str: |
no test coverage detected