Follow-up to #285: report already-archived issues and add bulk archive - #287
Merged
Merged
Conversation
Linear's issueArchive answers success for an issue that is already archived, so the new command silently "archived" it a second time. The details query now selects archivedAt and the command says the issue is already archived and returns without prompting or mutating, matching initiative archive. issue archive also gains --bulk, --bulk-file, and --bulk-stdin, mirroring issue delete: the use case behind #284 is cleaning up stale issues, which is many-at-once work, and every other lifecycle command on issues and initiatives already supports it. An already-archived issue counts as done in bulk mode; an unknown one is a per-item failure and the command exits non-zero. The mutation-failure message no longer repeats the handler prefix ("Failed to archive issue: Failed to archive issue"), and the changelog credits the contribution. Claude-Session: https://claude.ai/code/session_01A9qEGri4p2HZMQSuYsBmub
schpetbot
force-pushed
the
oss-pr-lander/285
branch
from
September 15, 2026 16:02
5e63abc to
7ce1973
Compare
schpetbot
marked this pull request as ready for review
September 15, 2026 16:02
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.
Follow-up to #285 (
linear issue archive, by @martin-piliar). Blind-planned corrective delta; this branch currently contains the contributor's commit too, so the diff is a superset until #285 lands, after which it will be rebased to only the delta.What the delta adds on top of the PR:
issueArchiveanswers success for an issue that is already archived, so the command silently "archived" it again. The details query now selectsarchivedAtand the command reports the issue is already archived without prompting or mutating, matchinginitiative archive.--bulk,--bulk-file, and--bulk-stdin, mirroringissue delete. An already-archived issue counts as done; an unknown one is a per-item failure and the command exits non-zero. A positional id alongside--bulkis rejected rather than silently dropped.Verified: two blind plans (Codex xhigh and an Opus planner) converged on these gaps; two Codex review passes on the delta (the first found the positional-drop and raw-error issues, both fixed; the second was clean); 735 tests in both color modes under TZ=UTC; a 12-case QA table run live on scratch issues.
https://claude.ai/code/session_01A9qEGri4p2HZMQSuYsBmub