Skip to content

Conversation

@memyselfandm
Copy link

Summary

  • Add --parent flag to linctl issue update to set, change, or remove parent issue relationships
  • Validates parent issue exists before update
  • Prevents self-referencing (issue cannot be its own parent)
  • Displays parent info in update output (styled and plaintext modes)

Usage

# Set parent
linctl issue update ISSUE-1 --parent PARENT-1

# Remove parent (promote to top-level)
linctl issue update ISSUE-1 --parent none

Test plan

  • go build ./... passes
  • go vet ./... passes
  • Smoke tests pass (39/41 - 2 pre-existing failures unrelated)
  • Manual test: set parent
  • Manual test: remove parent (--parent none)
  • Manual test: self-reference error
  • Manual test: non-existent parent error
  • Manual test: JSON output
  • Manual test: plaintext output

🤖 Generated with Claude Code

Mike G. and others added 2 commits December 6, 2025 23:00
Enable setting, changing, or removing parent issue relationships via CLI:
- linctl issue update ISSUE-1 --parent PARENT-1  (set parent)
- linctl issue update ISSUE-1 --parent none      (remove parent)

Features:
- Validates parent issue exists before update
- Prevents self-referencing (issue cannot be its own parent)
- Displays parent info in update output (styled and plaintext modes)
- Supports "none", "null", or empty string to remove parent

Files changed:
- cmd/issue.go: Flag registration, validation logic, help text, output
- pkg/api/queries.go: Added parent field to UpdateIssue mutation
- smoke_test.sh: Added tests for --parent flag documentation
- project-scratchpad.md: Implementation tracking

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove project-scratchpad.md (dev artifact)
- Port README documentation from PR dorkitude#7 (adapted for --parent flag)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant