Skip to content

Instantly share code, notes, and snippets.

@zpao
Created May 27, 2012 01:24
Show Gist options
  • Save zpao/2795812 to your computer and use it in GitHub Desktop.
Save zpao/2795812 to your computer and use it in GitHub Desktop.
simple node script to check on your review queue
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("paul@oshannessy.com");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment