Skip to content

Instantly share code, notes, and snippets.

@ksky
Created January 28, 2010 13:27
Show Gist options
  • Save ksky/288733 to your computer and use it in GitHub Desktop.
Save ksky/288733 to your computer and use it in GitHub Desktop.
get github commit infomation
@GrabResolver(name='HiveDB', root='http://www.hivedb.org/maven/')
@Grab('org.hivedb:github-api:1.0')
import org.hivedb.github.*
hub = new GitHub('glaforge', 'gaelyk')
println "Recent commits in ${hub.userName}/${hub.repository}:"
hub.commits.each { c -> println """
${c.authorDate} by ${c.author.name}
${c.message}
${c.url}"""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment