Closed chshersh closed 3 years ago
So we can fetch the latest milestone using the following query:
query { repository(owner: "kowainik", name: "hit-on") { milestones(last: 1, orderBy: {field: NUMBER, direction: DESC}) { nodes { title } } } }
Currently we have only IssueOrderField. But, I think, PRs and Milestones can have different fields...
IssueOrderField
https://github.com/kowainik/github-graphql/blob/5ffa6fc31631bc0e2f9b5b071e340cb49002c009/src/GitHub/GraphQL.hs#L253-L260
So we can fetch the latest milestone using the following query: