PEP-242: якорь блока секретов не зависит от названия платформы (после PEP-243 «из FORGE»)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4fa58fa21d
commit
7bedf9d342
@ -127,7 +127,7 @@ export type SecretsBlockResult =
|
||||
| { state: "present" }
|
||||
| { state: "unsupported"; reason: string };
|
||||
|
||||
const BLOCK_START = "# PEP-112: секреты проекта из Пеппы";
|
||||
const BLOCK_START = "# PEP-112: секреты проекта из "; // «из Пеппы» before PEP-243, «из FORGE» after
|
||||
|
||||
/**
|
||||
* Adds only the project secrets block (PEP-112) of the template's deploy script to a project's own
|
||||
|
||||
@ -112,7 +112,7 @@ describe("Сверка шаблона в вачдоге", () => {
|
||||
/** The template's deploy script as it was before PEP-112: no block, no override, no call — plus a project's own line. */
|
||||
function oldProjectScript(): string {
|
||||
const lines = TEMPLATE.split("\n");
|
||||
const start = lines.findIndex((l) => l.startsWith("# PEP-112: секреты проекта из Пеппы"));
|
||||
const start = lines.findIndex((l) => l.startsWith("# PEP-112: секреты проекта из "));
|
||||
const end = lines.findIndex((l, i) => i > start && l === "}");
|
||||
lines.splice(start, end - start + 2);
|
||||
const out = lines
|
||||
|
||||
Loading…
Reference in New Issue
Block a user