Last active
November 16, 2023 00:05
-
-
Save adamghill/95eecb1e4f9bc7541912e18b6dc60e66 to your computer and use it in GitHub Desktop.
Get last stargazers for repos
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 GitHub for all new stargazers for a particular user's repositories | |
query($login: String!) { | |
user(login: $login) { | |
login | |
repositories(last: 5, orderBy: {field: STARGAZERS, direction: ASC}) { | |
edges { | |
node { | |
name | |
url | |
stargazers(last: 5, orderBy: {field: STARRED_AT, direction: ASC}) { | |
edges { | |
starredAt | |
node { | |
login | |
name | |
avatarUrl | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
# {"login":"adamghill"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment