Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changes/fix-ready-tracker-category.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- **`cli-dev ready` knows the tracker category** that `new` writes (`tracker`, or its label "issue tracker (issues,
projects, teams)") and asks for cli-core's `trackerSourceContract`. A tracker CLI got "is no category new writes".
15 changes: 15 additions & 0 deletions src/dev/ready.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,21 @@ describe("cli-dev ready", () => {
})
})

it("asks a tracker for cli-core's tracker contract, by the category's value or its label", () => {
for (const category of ["tracker", "issue tracker (issues, projects, teams)"]) {
const cwd = cli({
"docs/dev/DESIGN.md": `- **Category:** ${category}\n`,
"src/tracker.test.ts": "it('x', () => {})\n",
})
expect(row(cwd, shell(cwd).run, "contracts")).toMatchObject({
status: "not verified",
fix:
"run cli-core's trackerSourceContract in a test (testing.md), or except it in lint/contract-exceptions.json " +
"with its reason, then run cli-dev ready again",
})
}
})

it("does not verify the live check from another version's record or from code changed since", () => {
const other = cli({ "docs/dev/live-checks.txt": "0.2.0 abc123 2026-11-10 bin/acme-live\n" })
expect(row(other, shell(other).run, "live")).toMatchObject({
Expand Down
1 change: 1 addition & 0 deletions src/dev/ready.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const CATEGORY_CONTRACTS: { names: string[]; contracts: string[] }[] = [
"meetingTranscriptStoreContract",
],
},
{ names: ["tracker", "issue tracker (issues, projects, teams)"], contracts: ["trackerSourceContract"] },
{ names: ["messenger", "notes"], contracts: [] },
]

Expand Down
Loading