Add dependency flags to tq issue update#214
Merged
Merged
Conversation
Use a typed CLI patch payload so issue updates can send dependency_ids while preserving specified-field-only JSON for existing updates. Add CLI tests for dependency replacement, clearing, usage errors, and server validation error propagation. Update English and Japanese CLI references.
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.
Add dependency flags to tq issue update
Summary
This PR adds CLI support for replacing or clearing issue dependencies through
tq issue update, matching the existingPATCH /api/v1/issues/{id}dependency_idscontract.主な変更点:
--dependency <comma-separated-ids>to fully replace issue dependencies.--clear-dependenciesto explicitly clear dependencies.チケットへのリンク
Issue #45
やったこと
tq issue updatenow rejects simultaneous--dependencyand--clear-dependencies.--dependency "", non-integer IDs, zero/negative IDs, and duplicate IDs are usage errors.--clear-dependencies=false, and server validation errors.動作確認
go test ./internal/cli/tqgo test ./internal/cli/tq ./internal/issue/...go test ./internal/... ./cmd/issue-tracker ./cmd/orchestrator ./cmd/tq ./cmd/tasq-tui ./db/migrationsgit diff --checkレビュー & 動作確認 チェックリスト
--dependency 1,2sendsdependency_ids: [1,2]and replaces the full dependency set.--clear-dependenciessendsdependency_ids: [].推奨テスト計画:
tq issue update <id> --dependency <dep-id>against local issue-tracker and confirm the issue response contains the dependency.tq issue update <id> --clear-dependenciesand confirm dependencies are empty.その他気になることや相談ごと
go test ./...was also attempted, butcmd/webfails during setup becausecmd/web/frontend/distis not present in this worktree. The non-web Go package set above passed.