Git Product home page Git Product logo

Comments (5)

gulien avatar gulien commented on July 29, 2024 2

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

from git-point.

housseindjirdeh avatar housseindjirdeh commented on July 29, 2024 1

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 πŸ’¬

from git-point.

housseindjirdeh avatar housseindjirdeh commented on July 29, 2024

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!

from git-point.

housseindjirdeh avatar housseindjirdeh commented on July 29, 2024

Agreed! πŸŽ‰

from git-point.

Antoine38660 avatar Antoine38660 commented on July 29, 2024

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"

from git-point.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.