Assign or unassign a milestone with assign_milestone
Goal: attach an issue to a milestone, or remove its milestone.
Prerequisites
Section titled “Prerequisites”- Both the issue and (if assigning) the milestone already exist.
-
To assign:
{"owner": "your-org","repo": "your-repo","issueNumber": 101,"milestoneNumber": 3} -
To unassign, pass
nullformilestoneNumber:{"owner": "your-org","repo": "your-repo","issueNumber": 101,"milestoneNumber": null} -
Read the response:
{ issueNumber, milestoneNumber }(echoing what you set, includingnullon unassign).
Verify it worked
Section titled “Verify it worked”- Reload the issue and confirm the milestone shown in the sidebar matches (or is cleared, for an unassign).
See also: tool reference.