Last active
August 12, 2019 03:13
-
-
Save GammaGames/3741b6886e898422a5447a1f55cbce78 to your computer and use it in GitHub Desktop.
Get the latest release and assets for a github repo from a static javascript page
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
let username = ""; | |
let repo = ""; | |
window.onload = () => { | |
fetch(`https://api.github.com/repos/${username}/${repo}/releases/latest`).then(response => { | |
response.json().then(json => { | |
console.log(json); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment