Fix export filename date tag and add time range to approval-runs count

This commit is contained in:
gitea committed 2026-09-14 10:01:20 +08:00
1 parent 45a576a18e
commit c7433db265
10 files changed
+302 -154

No files matched your search

+8
View File
@@ -220,4 +220,12 @@ describe("CLI help execution for lifecycle commands", () => {
expect(result.isError).toBe(false);
expect(result.stdout).toContain("seal-use stop");
});
test("approval-runs --help prints updated count and export parameter usage", async () => {
const result = await runCli(["approval-runs", "--help"]);
expect(result.exitCode).toBe(0);
expect(result.isError).toBe(false);
expect(result.stdout).toContain("approval-runs count [--status APPROVED] [--start <YYYY-MM-DD|ms>] [--end <YYYY-MM-DD|ms>]");
expect(result.stdout).toContain("approval-runs export [--start <YYYY-MM-DD|ms>] [--end <YYYY-MM-DD|ms>] [--status <status>] [--manual-status <status>] [--completed-only]");
});
});