List milestones with list_milestones
Goal: retrieve a repository’s milestones, filtered by state.
Prerequisites
Section titled “Prerequisites”- Read access to the target repository.
-
Call
list_milestones:{ "owner": "your-org", "repo": "your-repo", "state": "open" }Omit
stateto default toopen; pass"closed"or"all"for other views. -
Read the response — an array of
{ number, title, url, dueOn }.
Verify it worked
Section titled “Verify it worked”- Cross-check the returned titles/numbers against the repository’s Milestones page in the browser, filtered the same way.
- An empty array is a valid result (no milestones match the requested state) — it’s not an error condition.
See also: tool reference.