-
-
Notifications
You must be signed in to change notification settings - Fork 12
feat: add projects create command and --sort-order flag for issues #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
chadrwalters
wants to merge
13
commits into
czottmann:main
Choose a base branch
from
chadrwalters:eng-3224
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
Add Number.isFinite validation to catch non-numeric input like "--sort-order foo" and provide clear error message instead of letting NaN propagate to GraphQL API. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Allow users to reorder issues using the update command: linearis issues update ABC-123 --sort-order 1.5 Includes Number.isFinite validation to catch non-numeric input. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add TypeScript interface for project creation with required teamIds field and optional fields: description, color, icon, leadId, targetDate, startDate, state. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Create src/queries/projects.ts with PROJECT_FRAGMENT, CREATE_PROJECT_MUTATION, and LIST_PROJECTS_QUERY - Create GraphQLProjectsService with createProject() method - Support team ID resolution (key, name, or UUID) - Require UUID for leadId (Linear API limitation) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add CLI command to create Linear projects: linearis projects create "Project Name" --team ENG Features: - Required --team flag (can specify multiple with commas) - Optional description, color, icon, lead, dates, state - Validates state against allowed values - Uses GraphQL for efficient single-query creation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Wolf review caught that startDate was fetched via GraphQL but dropped in transformProject and missing from LinearProject type. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add YYYY-MM-DD format validation for --start-date and --target-date to fail fast with clear error message instead of cryptic GraphQL errors. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tests cover: - Project creation with team resolution - UUID passthrough for team IDs - Lead ID UUID validation - Optional field handling - GraphQL failure handling - startDate inclusion in response (Wolf fix verification) - listProjects with team filtering Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Added entries for: - projects create command with required --team flag - --sort-order flag for issues create/update - startDate fix for LinearProject type Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add startDate field to getProjects() output in LinearService - Normalize GraphQL null responses to undefined in transformProject - Ensures consistent API response handling across service layers Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
If a view is using the "sort by priority" option, it would also be neat to support |
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.
Summary
This PR adds two features to linearis:
projects createcommand - Create Linear projects from the CLI--teamflag (accepts team key, name, or UUID; comma-separated for multiple)--description,--color,--icon,--lead,--target-date,--start-date,--state--sort-orderflag forissues createandissues updateChanges
GraphQLProjectsServicewithcreateProject()methodProjectCreateArgstype definitionPROJECT_FRAGMENTandCREATE_PROJECT_MUTATIONGraphQL queriesLinearProjecttype to includestartDatefieldTesting
Checklist
npm test)🤖 Generated with Claude Code