Skip to content

feat: add milestone support to issue commands#149

Merged
schpet merged 4 commits intoschpet:mainfrom
jholm117:feat/milestone-flag
Feb 24, 2026
Merged

feat: add milestone support to issue commands#149
schpet merged 4 commits intoschpet:mainfrom
jholm117:feat/milestone-flag

Conversation

@jholm117
Copy link
Contributor

@jholm117 jholm117 commented Feb 23, 2026

Summary

  • Adds --milestone flag to issue create and issue update commands
  • Resolves milestones by name (case-insensitive) within the specified project
  • For issue update, automatically falls back to the issue's existing project if --project is not explicitly provided
  • Validates that a project context exists before attempting milestone lookup, with helpful error messages
  • Shows project and milestone in issue view output (displayed below the title when present)

Example usage

# Create an issue with a milestone
linear issue create --title "Implement feature" --team ENG --project "My Project" --milestone "Phase 1"

# Update an issue's milestone (project inferred from issue)
linear issue update ENG-123 --milestone "Phase 2"

# View an issue — now shows project and milestone
linear issue view ENG-123
# => Project: My Project | Milestone: Phase 1

Test plan

  • Happy path tests for create and update with milestone
  • Snapshot test for issue view with project and milestone displayed
  • All 205 tests pass
  • deno check and deno lint pass
  • GraphQL codegen regenerated
  • Verified end-to-end against Linear API

🤖 Generated with Claude Code

Allows setting a project milestone when creating or updating issues.
The milestone is resolved by name (case-insensitive) within the
specified project. For issue update, falls back to the issue's
existing project if --project is not explicitly provided.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jholm117 jholm117 marked this pull request as ready for review February 23, 2026 18:33
jholm117 and others added 2 commits February 23, 2026 13:36
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jholm117
Copy link
Contributor Author

I am a human and I verify this works.

Add project and projectMilestone fields to the issue detail GraphQL
queries and display them as a metadata line below the title.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jholm117 jholm117 changed the title feat: add --milestone flag to issue create and update feat: add milestone support to issue commands Feb 24, 2026
@schpet schpet merged commit b65ba20 into schpet:main Feb 24, 2026
7 checks passed
@schpet
Copy link
Owner

schpet commented Feb 24, 2026

@jholm117 haha appreciate that 😄 – i didn't test it out but trust your endorsement. if you notice anything please throw up a follow up PR before a i cut a release (not sure when that is, yet)

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