Commit 14fd312
committed
fix: address fourth round of Copilot review feedback
1. Remove unused script_type parameter from _write_integration_json()
and all 3 call sites — the parameter was no longer referenced after
the update-context script removal.
2. Fix _build_context_section() docstring — correct example path from
'.specify/plans/plan.md' to 'specs/<feature>/plan.md'.
3. Improve .mdc frontmatter-only detection in remove_context_section()
— use regex to match any YAML frontmatter block (not just the exact
Speckit-generated one), so .mdc files with additional frontmatter
keys are also cleaned up when no body content remains.1 parent 2dfefaf commit 14fd312
2 files changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1734 | 1734 | | |
1735 | 1735 | | |
1736 | 1736 | | |
1737 | | - | |
1738 | 1737 | | |
1739 | 1738 | | |
1740 | 1739 | | |
| |||
1929 | 1928 | | |
1930 | 1929 | | |
1931 | 1930 | | |
1932 | | - | |
| 1931 | + | |
1933 | 1932 | | |
1934 | 1933 | | |
1935 | 1934 | | |
| |||
2212 | 2211 | | |
2213 | 2212 | | |
2214 | 2213 | | |
2215 | | - | |
| 2214 | + | |
2216 | 2215 | | |
2217 | 2216 | | |
2218 | 2217 | | |
| |||
2320 | 2319 | | |
2321 | 2320 | | |
2322 | 2321 | | |
2323 | | - | |
| 2322 | + | |
2324 | 2323 | | |
2325 | 2324 | | |
2326 | 2325 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
| 395 | + | |
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
510 | | - | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
511 | 515 | | |
512 | 516 | | |
513 | 517 | | |
| |||
0 commit comments