List milestones
/repos/{owner}/{repo}/milestones- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- owner stringrequired
- repo stringrequired
Query Parameters
- state stringoptional
The state of the milestone. Either `open`, `closed`, or `all`.
- sort stringoptional
What to sort results by. Either `due_on` or `completeness`.
- direction stringoptional
The direction of the sort. Either `asc` or `desc`.
- per_page integeroptional
Results per page (max 100)
- page integeroptional
Page number of the results to fetch.
Responses
Response
Headers
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last" items Milestone objectA collection of related issues and pull requests.
A collection of related issues and pull requests.
Example: 2013-02-12T13:22:01Z
Example: 8
Example: 2011-04-10T20:09:31Z
creator Simple User objectrequirednullable Simple User
Simple User
Example: https://github.com/images/error/octocat_happy.gif
Example: https://api.github.com/users/octocat/events{/privacy}
Example: https://api.github.com/users/octocat/followers
Example: https://api.github.com/users/octocat/following{/other_user}
Example: https://api.github.com/users/octocat/gists{/gist_id}
Example: 41d064eb2195891e12d0413f63227ea7
Example: https://github.com/octocat
Example: 1
Example: octocat
Example: MDQ6VXNlcjE=
Example: https://api.github.com/users/octocat/orgs
Example: https://api.github.com/users/octocat/received_events
Example: https://api.github.com/users/octocat/repos
Example: "2020-07-09T00:17:55Z"
Example: https://api.github.com/users/octocat/starred{/owner}{/repo}
Example: https://api.github.com/users/octocat/subscriptions
Example: User
Example: https://api.github.com/users/octocat
Example: Tracking milestone for version 1.0
Example: 2012-10-09T23:39:01Z
Example: https://github.com/octocat/Hello-World/milestones/v1.0
Example: 1002604
Example: https://api.github.com/repos/octocat/Hello-World/milestones/1/labels
Example: MDk6TWlsZXN0b25lMTAwMjYwNA==
The number of the milestone.
Example: 42
Example: 4
The state of the milestone.
Example: open
The title of the milestone.
Example: v1.0
Example: 2014-03-03T18:58:10Z
Example: https://api.github.com/repos/octocat/Hello-World/milestones/1
Resource not found