Skip to content

Assign or unassign a milestone with assign_milestone

Goal: attach an issue to a milestone, or remove its milestone.

  • Both the issue and (if assigning) the milestone already exist.
  1. To assign:

    {
    "owner": "your-org",
    "repo": "your-repo",
    "issueNumber": 101,
    "milestoneNumber": 3
    }
  2. To unassign, pass null for milestoneNumber:

    {
    "owner": "your-org",
    "repo": "your-repo",
    "issueNumber": 101,
    "milestoneNumber": null
    }
  3. Read the response: { issueNumber, milestoneNumber } (echoing what you set, including null on unassign).

  • Reload the issue and confirm the milestone shown in the sidebar matches (or is cleared, for an unassign).

See also: tool reference.