fat / haunt Goto Github PK
View Code? Open in Web Editor NEWA module for creating github issue bots
Home Page: fat.github.com/haunt
License: Apache License 2.0
A module for creating github issue bots
Home Page: fat.github.com/haunt
License: Apache License 2.0
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
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)
This issue should be closed because it's a test case.
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 !
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);
}
}
}
}
@fat can you please help me or is a issue in the package?
Adding the ability to comment on specific lines of pull request diff would, for example, allow linters and automated test suites to point out specific failures in context.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.