Skip to content

Instantly share code, notes, and snippets.

@shama
Created July 27, 2012 01:44
Show Gist options
  • Save shama/3185723 to your computer and use it in GitHub Desktop.
Save shama/3185723 to your computer and use it in GitHub Desktop.
haunting a repo with issues disabled
var assert = require('assert');
module.exports = {
'pull-requests': {
'should log pull request object': function (pull) {
//assert.ok(/\-wip$/.test(pull.base.label))
console.log(pull);
}
}
}
/**
$ haunt .issue-guidelines.js http://github.com/croogo/croogo --user shama:******
Testing locally http://github.com/croogo/croogo...
/var/www/haunt/lib/repo.js:157
.map(function (issue) { return !issue.pull_request.html_url && iss
^
TypeError: Cannot read property 'html_url' of undefined
at Repo.getIssues (/var/www/haunt/lib/repo.js:157:63)
at Array.map (native)
at Repo.getIssues (/var/www/haunt/lib/repo.js:157:14)
at module.exports.getIssues (/var/www/haunt/lib/util/github.js:120:14)
at Request.github [as _callback] (/var/www/haunt/lib/util/github.js:52:63)
at Request.init.self.callback (/var/www/haunt/node_modules/request/main.js:120:22)
at Request.EventEmitter.emit (events.js:91:17)
at Request.<anonymous> (/var/www/haunt/node_modules/request/main.js:555:16)
at Request.EventEmitter.emit (events.js:88:17)
at IncomingMessage.Request.start.self.req.self.httpModule.request.buffer (/var/www/haunt/node_modules/request/main.js:517:14)
**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment