Created
February 11, 2014 23:48
-
-
Save digilord/8946860 to your computer and use it in GitHub Desktop.
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
var getOpenGitIssues = function(){ | |
var issuesByNumber = Fiber(function(){ | |
var future = new Future(); | |
var _issues; | |
var _issuesByNumber = {}; | |
github.issues.repoIssues({user:self.project.username, repo: self.project.name}, function(error, data){ | |
future.return(data) | |
}); | |
_issues = future.wait(); | |
_.each(_issues, function(issue){ | |
if(issue.state === 'open'){ | |
_issuesByNumber[issue.number] = issue; | |
}; | |
}); | |
return _issuesByNumber; | |
}).run(); | |
util.log(issuesByNumber); | |
return issuesByNumber; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment