Skip to content

feat: add milestone support to linear_issue and linear_project tools#7

Merged
jonryser merged 4 commits intomainfrom
feat/milestone-support
Mar 18, 2026
Merged

feat: add milestone support to linear_issue and linear_project tools#7
jonryser merged 4 commits intomainfrom
feat/milestone-support

Conversation

@genui-scotty
Copy link
Copy Markdown
Contributor

@genui-scotty genui-scotty bot commented Mar 18, 2026

Summary

Adds project milestone support to the linear_issue and linear_project tools.

Changes

linear-api.ts

  • Add resolveMilestoneId(projectId, name) resolver — looks up a milestone by name within a project, case-insensitive, with clear error listing available options

linear_issue tool

  • New milestone param on create and update — associates the issue with a named project milestone
    • create: requires project to be set
    • update: uses the existing issue project if no project param provided
  • view response now includes projectMilestone { id, name }

linear_project tool

  • view response now includes projectMilestones { nodes { id, name, targetDate, description } }

skills/linear/SKILL.md

  • Updated docs with milestone param and resolveMilestoneId resolver

Tests

11 new tests — 389 total, all passing.

  • resolveMilestoneId: 5 tests (happy path, case-insensitive, not found, empty project, variable passing)
  • linear_issue create with milestone: 2 tests (milestone resolved, error without project)
  • linear_issue update with milestone: 4 tests (uses existing project, uses new project param, error when no project)
  • linear_project view milestones: 1 test

genui-scotty bot added 4 commits March 17, 2026 18:06
- Add resolveMilestoneId(projectId, name) resolver to linear-api.ts
- Add milestone param (create + update) to linear_issue tool
  - create: requires project to be set; resolves milestone by name
  - update: uses existing issue project if no project param provided
- Add projectMilestone to linear_issue view response
- Add projectMilestones nodes to linear_project view response
- Update SKILL.md docs with milestone param and resolver details
- 11 new tests (389 total, all passing)
- Extract fetchIssueContext() for issue team/description/project lookup
- Extract buildScalarFields() (sync) for simple field assignment
- Extract buildResolvedFields() for async resolver calls
- Resolves: complexity > 20, require-atomic-updates, await-thenable
@jonryser jonryser merged commit 83b8b9a into main Mar 18, 2026
1 check passed
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