Repository navigation
feat: copy Linear's cycles as sprints, and drop trashed issues at the daily pass - #17
Merged
Merged
Conversation
Brings the tracker's sprints, trashed issues, the duplicate state, the changed-rows count and the documents' rescanEvery (cli-core #3316, #3302). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… daily pass - A tracker kind `sprint` from Linear's `cycles`; issues carry `sprint` (`cycle.id`), so `issues list sprint:<id>` and `sprint:none` narrow by cycle. - Issues map `deleted` to Linear's `trashed`, and the daily id pass selects it. Trashing an issue leaves its updatedAt, so only that pass sees it: the issue and its comments leave the copy, and come back when restored. - Documents walk everything once a week (`rescanEvery: "7d"`): a restore from Linear's trash moves no updatedAt and has no audit entry. - `sprints` sits in the lint baseline until cli-base has the word. - Tests over cli-core's strict manifest fake, README, test matrix, live check step and a changelog fragment (Added, 0.4.0). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the shell string Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
The strict fake seeds three rows of each kind, two a page, and each page is several store writes: one sync took over 15 s on a CI runner. The tests keep two rows of each kind (one page), check sprints and the Duplicate state over one sync, and run the trash and restore case through syncTracker over the issue and comment kinds only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task
Wire cli-core 0.750.0's tracker changes into linear-cli (owner rulings NEED-2739 A, NEED-2740 A; FIND-2844.b, FIND-2844.c):
Linear's cycles as a
sprintkind, trashed issues leaving the copy, theduplicatestate type kept, and documentsrestored from Linear's trash coming back without
--rescan.What
sprintfrom Linear'scycles. Issues carrysprint(cycle.id), soissues list sprint:<id>andsprint:nonenarrow by cycle.deletedto Linear'strashed, and the daily id pass selects it. Trashing leaves anissue's
updatedAtunchanged (checked live), so only that pass sees it. The issue and its comments leave the copy,and come back when it is restored.
rescanEvery: "7d". A restore from the trash moves noupdatedAtand leaves no audit entry, so onlya full walk brings the document back.
sprintsgoes in the lint baseline until cli-base has the word (cli-base #717).scripts/live.sh, and a changelog fragment(Added → 0.4.0).
Testing
src/tracker-sprints.test.tsruns over cli-core's strict manifest fake:sprint:<id>andsprint:none, and a Duplicate state withits issues kept;
syncTracker: a trashed issue leaves at the daily pass with its comments, and comes back with them oncerestored.
keep two rows of each kind, and the trash case syncs only issues and comments.
tracker-contracts.test.tsruns cli-core's new trash contract case. The options test coverssprints list.lint:commands,docs:checkand the test-matrix check pass.sprint 2synced, and the sprints step passed.🤖 Generated with Claude Code