Skip to content

Commit 8fb004e

Browse files
committed
test(ci): the release edit guard also rejects attached -n/-F notes flags
Review round 4 of #8780 nit: -Fother.md and -F=other.md are accepted by gh. Refs #7207
1 parent 5b0993b commit 8fb004e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/ci-workflows/ci-workflows.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ describe("GitHub Actions hardening", () => {
848848
// notes file: at creation, or when a resumed run reuses a draft and rewrites its body from its own file (#7207).
849849
for (const edit of workflow.match(/gh release edit[^\n]*/g) ?? []) {
850850
if (edit.includes("--notes")) expect(edit).toBe('gh release edit "$release_tag" --notes-file "$notes_file" ;;');
851-
else { expect(edit).toContain("--draft=false"); expect(edit).not.toMatch(/\s-[nF](\s|$)/); }
851+
else { expect(edit).toContain("--draft=false"); expect(edit).not.toMatch(/\s-[nF]/); }
852852
}
853853
expect(workflow).not.toContain("--generate-notes");
854854

0 commit comments

Comments
 (0)