Giter VIP home page Giter VIP logo

Comments (6)

mattstauffer avatar mattstauffer commented on May 22, 2024

That is a cool idea. :)

from gistlog.

milose avatar milose commented on May 22, 2024

GitHub API does not currently provide for stargazers_count like on repositories. But I think it is possible to check if the authenticated user gave a star to a gist and an API call to star / unstar:
https://developer.github.com/v3/gists/#star-a-gist

from gistlog.

rubemlrm avatar rubemlrm commented on May 22, 2024

Looks that its possible to get the number of comments for given gist( https://developer.github.com/v3/gists/#get-a-single-gist) but for stars we can't get that kind of information :( . I can try add the comments information. And looks that's possible to start a gist from api too.

from gistlog.

ThomasRedstone avatar ThomasRedstone commented on May 22, 2024

It looks like this request has been around a good while, and the API still doesn't appear to support getting the star count of a gist.
Perhaps the two parts of this should be split off? With the star count waiting until a future API change makes it possible.

from gistlog.

mattstauffer avatar mattstauffer commented on May 22, 2024

@ThomasRedstone that's fine; if someone picks up just the comment count that could still be fun. I believe we already have it at the top of the comment section, but it would be fun to also put it in some sort of Medium-like display.

from gistlog.

mattstauffer avatar mattstauffer commented on May 22, 2024

Current plan:

  • Number of comments
  • Star/unstar for current user

Future plan, making a separate issue:

  • Number of stars

from gistlog.

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.