Skip to content

Instantly share code, notes, and snippets.

@hliyan
Last active August 29, 2015 13:57
Show Gist options
  • Save hliyan/9449175 to your computer and use it in GitHub Desktop.
Save hliyan/9449175 to your computer and use it in GitHub Desktop.
Github API for Google Apps
// how to use GAGA
var data = $git.token('<your github token here>')
.org('hliyan')
.project('enterprise')
.milestone(1)
.status('open+closed')
.fetch('issues', true); // true: returns GitIssue objects, false: raw data
for (var i = 0; i < data.length; i++) {
var issue = data[i];
Logger.log(issue); // you can see the issue structure here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment