Skip to content

Instantly share code, notes, and snippets.

@DonMills
Last active June 22, 2017 01:48
Show Gist options
  • Save DonMills/b8762de1d7715d93d368f5e18a46beac to your computer and use it in GitHub Desktop.
Save DonMills/b8762de1d7715d93d368f5e18a46beac to your computer and use it in GitHub Desktop.
Pull a list of release names from Github with Groovy
import groovy.json.JsonSlurper
def feedUrl = "https://api.github.com/repos/{user}/{repo}/releases"
def data = new URL(feedUrl).getText()
def list = new JsonSlurper().parseText(data)
list.each{ println it.name }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment