Created
October 21, 2013 08:08
-
-
Save raphink/7080246 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
<html> | |
<head> | |
<script src="base64.js"></script> | |
<script src="underscore-min.js"></script> | |
<script src="github.js"></script> | |
<script language="JavaScript"> | |
var github = new Github({ | |
username: "youruser", | |
password: "yourpasswd" | |
}) | |
var user = github.getUser(); | |
var org = 'camptocamp' | |
user.orgRepos(org, listRepos) | |
function listRepos(err, repos) { | |
for (var i=0; i<repos.length; i++) { | |
name = repos[i].name; | |
if (! name.match(/^puppet-aug/)) continue; | |
r = github.getRepo(org, name); | |
r.show(showRepo); | |
} | |
} | |
function showRepo(repo) { | |
console.log('hello'+repo.name); | |
} | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment