Code Monkey home page Code Monkey logo

haunt's People

Contributors

fat avatar shama avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

haunt's Issues

Accidental "spamming" of bootstrap

I wasn't totally sure what make haunt did in the twitter bootstrap makefile and accidentally spammed dozens of github issues for the project. I'm guessing there should be some sort of control or confirmation dialog before it is run for the first time on an open project. I didn't expect one of the makefile commands to perform so many actions on github on my behalf that I didn't intend.

reference example: twbs/bootstrap#4550

Haunt is throwing the following error.

TypeError: Cannot read property 'login' of undefined
    at Repo.getPullRequests (/usr/local/lib/node_modules/haunt/lib/repo.js:143:43)
    at /usr/local/lib/node_modules/haunt/node_modules/async/lib/async.js:454:21
    at /usr/local/lib/node_modules/haunt/node_modules/async/lib/async.js:185:13
    at /usr/local/lib/node_modules/haunt/node_modules/async/lib/async.js:86:13
    at Array.forEach (native)
    at _forEach (/usr/local/lib/node_modules/haunt/node_modules/async/lib/async.js:26:24)
    at async.forEach (/usr/local/lib/node_modules/haunt/node_modules/async/lib/async.js:85:9)
    at _asyncMap (/usr/local/lib/node_modules/haunt/node_modules/async/lib/async.js:184:9)
    at Object.map (/usr/local/lib/node_modules/haunt/node_modules/async/lib/async.js:168:23)
    at Object.async.parallel (/usr/local/lib/node_modules/haunt/node_modules/async/lib/async.js:452:19)

readme augment

can you link to where the bot has interacted on a public repo?
also can you share the entirety of some of the rules you've written?
that'd help a lot !

Authentication is broken

Hi @fat ! Cool library, but I can't authenticate.

I ran haunt with a local test.js file and against my own repository.

(py26) kmarwaha73-mac:foss kmarwaha$ haunt ./test.js https://github.com/marwahaha/moment
Please provide your github credentials:
+ username  marwahaha
+ password  
Testing locally https://github.com/marwahaha/moment...
/Users/kmarwaha/.nvm/versions/node/v6.10.0/lib/node_modules/haunt/lib/repo.js:143
    github.getPullRequests(this.data.owner.login, this.data.name, function (err, pullRequests) {
                                          ^

TypeError: Cannot read property 'login' of undefined
    at Repo.getPullRequests (/Users/kmarwaha/.nvm/versions/node/v6.10.0/lib/node_modules/haunt/lib/repo.js:143:43)
    at /Users/kmarwaha/.nvm/versions/node/v6.10.0/lib/node_modules/haunt/node_modules/async/lib/async.js:454:21
    at /Users/kmarwaha/.nvm/versions/node/v6.10.0/lib/node_modules/haunt/node_modules/async/lib/async.js:185:13
    at /Users/kmarwaha/.nvm/versions/node/v6.10.0/lib/node_modules/haunt/node_modules/async/lib/async.js:86:13
    at Array.forEach (native)
    at _forEach (/Users/kmarwaha/.nvm/versions/node/v6.10.0/lib/node_modules/haunt/node_modules/async/lib/async.js:26:24)
    at async.forEach (/Users/kmarwaha/.nvm/versions/node/v6.10.0/lib/node_modules/haunt/node_modules/async/lib/async.js:85:9)
    at _asyncMap (/Users/kmarwaha/.nvm/versions/node/v6.10.0/lib/node_modules/haunt/node_modules/async/lib/async.js:184:9)
    at Object.map (/Users/kmarwaha/.nvm/versions/node/v6.10.0/lib/node_modules/haunt/node_modules/async/lib/async.js:168:23)
    at Object.async.parallel (/Users/kmarwaha/.nvm/versions/node/v6.10.0/lib/node_modules/haunt/node_modules/async/lib/async.js:452:19)

my test.js file looks like this:

(py26) kmarwaha73-mac:foss kmarwaha$ cat test.js
var assert = require('assert');

module.exports = {

    'pull-requests': {

        'should be prefixed with the word bug': function (issue) {
            assert.ok(/^bug/.test(issue.title));
        },

        'after': function (issue) {

            if (issue.reporter.stats.failures) {
                issue.reportFailures(issue);
            }

        }

    }

}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.