Created
September 22, 2017 02:38
-
-
Save Quramy/cbde7330111e995baf3d22643b02afe9 to your computer and use it in GitHub Desktop.
get commit id from tagname
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
{ | |
"owner": "Quramy", | |
"repository": "tsuquyomi", | |
"tag": "v0.8.0" | |
} |
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
query MyQuery($tag: String!, $owner: String!, $repository: String!) { | |
repository(owner: $owner, name: $repository) { | |
nameWithOwner | |
ref(qualifiedName: $tag) { | |
name | |
target { | |
oid | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sample result: