Skip to content

Conversation

@raegislabs
Copy link

Summary

  • Story 1.1: Issue-Project Assignment (completed previously)
  • Story 1.2: Project Creation & Archival

Story 1.2 Changes

  • Added linctl project create command with full validation
  • Added linctl project archive command with project name output
  • Implemented GraphQL mutations: CreateProject, ArchiveProject
  • Enhanced GetTeam to support key lookup with ID fallback
  • Added comprehensive test coverage (API + CLI)

Test Plan

Commands Added

linctl project create --name "Q1 Backend" --team ENG
linctl project archive PROJECT-UUID

Files Modified

  • pkg/api/queries.go - CreateProject, ArchiveProject, enhanced GetTeam
  • cmd/project.go - projectCreateCmd, projectArchiveCmd with DI hooks
  • pkg/api/queries_test.go - API client tests
  • cmd/project_test.go - Helper function tests
  • cmd/project_cmd_test.go - CLI output tests

🤖 Generated with Claude Code

raegislabs and others added 3 commits November 6, 2025 13:04
Add --project flag to issue create and update commands to enable
project assignment/removal from the CLI without switching to Linear UI.

Features:
- Add --project flag accepting project UUID or 'unassigned'
- UUID format validation before API calls
- Improved error messages for invalid projects
- Project display in all output formats (table, plaintext, JSON)

Technical changes:
- cmd/issue.go: Flag registration, input building, error handling
- pkg/api/queries.go: GraphQL mutations include project field
- cmd/*_test.go: Unit tests for flag parsing and validation

All acceptance criteria tested and passing.

Story: 1.1 - Issue-Project Assignment
Status: review → in-progress (addressing review feedback)
Story completed for personal use and testing. Will consider contributing
upstream PR after thorough testing period.
- Add CreateProject() and ArchiveProject() API methods
- Implement project create command with validation
- Implement project archive command with name output
- Add comprehensive tests for API and CLI
- Enhanced GetTeam to support key lookup with ID fallback
- All acceptance criteria met (AC #1-dorkitude#7)

Closes Story 1.2

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

Co-Authored-By: Claude <noreply@anthropic.com>
@raegislabs
Copy link
Author

ok merge

@raegislabs raegislabs closed this Nov 6, 2025
@raegislabs raegislabs reopened this Nov 6, 2025
raegislabs added a commit to raegislabs/linctl that referenced this pull request Nov 6, 2025
@raegislabs raegislabs closed this Nov 6, 2025
@raegislabs raegislabs deleted the feature/issue-project-assignment branch November 6, 2025 07:33
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