Pinned repositories
Hi,
This app looks promising, great work! 👍 It would be nice to have the pinned repositories on a user profil 😃
Thank you so much :)
Yes this can be useful! Do you happen to have an idea of where you'd like to show it on the user profile page? Don't want to over-clutter the page, but some ideas:
- Show in the bottom section of the user profile page right above the Email
SectionList(as anotherSectionListwith just the list of pinned repositories - Show ordered to the top in the
RepositoryListScreenwith an indicator of some sort
Leaning towards first one - but definitely open to all kinds of suggestions!
Both options are cool, but I've a slighty preference for the first one 😁
Agreed! 🎉
Do you have some preference or idea on how retrieve a pinned repositories list?
Seems there is no easy way (endpoint) to get a user's pinned repos:
- With Github API v4, we have this possibility: https://stackoverflow.com/a/43358500
- Some libs (example: gh-pinned-repos) loads the user github page and extract the pinned repo from the DOM... Seems pretty "heavy"
Ah I was hoping there was an endpoint for it 😞
Ooooh so the GraphQL API has a way to retrieve that info. I definitely agree in that we shouldn't use a scraping tool to simply get the pinned repos. I'm okay with either option:
- Include GraphQL into our app and add this endpoint to retrieve pinned repositories. I haven't had the chance to use GraphQL but I've heard it's quite smooth to add an endpoint over a current REST implementation. We can open a separate issue to further explore the GraphQL API and if it makes sense to fully transition from REST (I've heard awesome things about it)
- Close this issue for now and possible open it later if we choose to explore GraphQL in the future
Definitely in favour of option 1, but open to all kinds of suggestions 💬