starter.dev-github-showcases icon indicating copy to clipboard operation
starter.dev-github-showcases copied to clipboard

[next-react-query-tailwind]: Fix Milestone for Issues and pull requests tab for single repo

Open hdJerry opened this issue 2 years ago • 1 comments

Currently milestones filter doesn't work by targeting the ID of the milestone.

Apparently, we can't filter by milestones for pull requests with the Graphql API so, you will need to extend the API by using the REST API version for that situation

Fix

  • replace milestone with milestoneNumber in the query
  • replace the id of the milestone with the number of the milestone

hdJerry avatar Aug 21 '23 17:08 hdJerry

I added some functions for the app rest API restAPI.ts has the fetch API and the APIs needed to label, milestones and get the pull requests.

I also added the pull request parser named parseRESTAPIPullRequest to format the data to the format used to display the PR's

You can look at the Qwik and SolidStart showcase as a guide.

Please ensure you pull the latest from the main branch to see the changes in the Qwik or SolidStart

@Megio

hdJerry avatar Aug 30 '23 18:08 hdJerry