Skip to content

Conversation

@bendrucker
Copy link
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
Copy link
Owner

schpet commented Feb 3, 2026

@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