Created
February 25, 2020 20:49
-
-
Save slgraff/d6debd84ac276526b937da30f68ec7a7 to your computer and use it in GitHub Desktop.
Use GraphQL to get number of stars for a repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query { | |
repository(owner: YOUR_USERNAME, name: YOUR_REPO_NAME) { | |
stargazers { | |
totalCount | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment