Created
May 27, 2012 01:24
-
-
Save zpao/2795812 to your computer and use it in GitHub Desktop.
simple node script to check on your review queue
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
require("request"); | |
var bz = require("bz"); | |
var bugzilla = bz.createClient(); | |
function getRequests(email) { | |
bugzilla.searchBugs({"flag.requestee": email}, function(err, bugs) { | |
bugs.forEach(function(bug) { | |
console.log(formatBugOutput(bug)); | |
}) | |
}); | |
} | |
function formatBugOutput(bug) { | |
return bug.id + " - " + bug.summary + "\n " + | |
"http://bugzil.la/" + bug.id; | |
} | |
getRequests("[email protected]"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment