Git-point: Pinned repositories

Created on 13 Jul 2017  路  5Comments  路  Source: gitpoint/git-point

Hi,

This app looks promising, great work! 馃憤
It would be nice to have the pinned repositories on a user profil 馃槂

enhancement graphql help wanted

Most helpful comment

Both options are cool, but I've a slighty preference for the first one 馃榿

All 5 comments

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:

  1. Show in the bottom section of the user profile page right above the Email SectionList (as another SectionList with just the list of pinned repositories
  2. Show ordered to the top in the RepositoryListScreen with 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:

  1. With Github API v4, we have this possibility: https://stackoverflow.com/a/43358500
  2. 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:

  1. 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)
  2. 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 馃挰

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lXSPandora picture lXSPandora  路  5Comments

arthurdenner picture arthurdenner  路  3Comments

housseindjirdeh picture housseindjirdeh  路  5Comments

umarmughal picture umarmughal  路  4Comments

housseindjirdeh picture housseindjirdeh  路  3Comments