Skip to content

feat: add --sort-order to milestone update#120

Merged
schpet merged 1 commit into
schpet:mainfrom
bendrucker:add-sort-order-to-milestone-update
Feb 3, 2026
Merged

feat: add --sort-order to milestone update#120
schpet merged 1 commit into
schpet:mainfrom
bendrucker:add-sort-order-to-milestone-update

Conversation

@bendrucker

Copy link
Copy Markdown
Contributor

Add --sort-order <value> flag to linear milestone update, exposing the sortOrder field that was already available in the GraphQL schema's ProjectMilestoneUpdateInput but not as a CLI option.

Changes

  • Add --sort-order <value:number> option to the update command
  • Include sortOrder in the mutation response and display it in output
  • Use == null / != null checks (not truthiness) so --sort-order 0 works correctly
  • Update validation error message to list the new flag

Testing

  • Snapshot test for --sort-order 5
  • Dedicated edge case test for --sort-order 0 to guard against truthiness-check regressions
  • Updated existing mock responses to include sortOrder field

Expose the sortOrder field (already in the GraphQL schema) as a CLI
option for updating milestone ordering within a project.
@schpet schpet merged commit 4dd3878 into schpet:main Feb 3, 2026
7 checks passed
@schpet

schpet commented Feb 3, 2026

Copy link
Copy Markdown
Owner

@bendrucker appreciate it ✌🏻

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.

2 participants