Created
May 11, 2019 10:57
-
-
Save FujiHaruka/f6776a2fe8f034927d2714f72f505bb9 to your computer and use it in GitHub Desktop.
GraphQL query to get latest commit hash of a file
This file contains hidden or 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
| { | |
| repository(name: "TypeScript", owner: "Microsoft") { | |
| ref(qualifiedName: "master") { | |
| target { | |
| ... on Commit { | |
| history(first: 1, path: "tslint.json") { | |
| edges { | |
| node { | |
| oid | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment