Closed chshersh closed 3 years ago
Currently we don't have a way to query Milestone by number:
Milestone
query { repository(owner: "kowainik", name: "hit-on") { milestone(number: 1) { id } } }
With the response:
{ "data": { "repository": { "milestone": { "id": "MDk6TWlsZXN0b25lNDQ4MDI1Mg==" } } } }
For this, we need to add a milestone connection to Repository. Similar to Issue/Issues we need to have Milestone/Milestones:
Repository
Issue
Issues
Milestones
Additionally, it would be nice to have a helper function to query MilestoneId similar to querying RepositoryId:
MilestoneId
RepositoryId
And add tests for this function (e.g. using the example in this issue).
Currently we don't have a way to query
Milestone
by number:With the response:
For this, we need to add a milestone connection to
Repository
. Similar toIssue
/Issues
we need to haveMilestone
/Milestones
:Additionally, it would be nice to have a helper function to query
MilestoneId
similar to queryingRepositoryId
:And add tests for this function (e.g. using the example in this issue).