Comments (9)
Works for me. I've clearly been terrible about maintaining this. You always assume something is going to be small and not need a framework, and then it grows 😆
from babel-bot.
Would love to help with this @hzoo! Will try to hack away at it this upcoming weekend, though my bandwidth this week is low; are the features in this repo's README up to date?
from babel-bot.
I believe so other than the existing prs? Haven't updated it in so long
I'm sure a lot of the features are already probot apps too? wonder if you can just reuse like https://github.com/eslint/eslint-github-bot
from babel-bot.
I would love to work on this but currently, I have to focus on graduating first 😞 I will check in again once I am done with my master's thesis.
from babel-bot.
Is this still a want? I've been looking over at probot and the handlers currently in this repo.
I figure I could start with some of the most basic handlers and slowly start moving it over one by one instead of a big switch.
Thoughts? I was thinking of starting with the issues/opened.js
handler since that one seems pretty straight forward.
If this seems cool, do let me know. I'm going to get started later in the day. If anyone has an alternative approach or maybe a better handler to start with, let me know :).
Thanks.
from babel-bot.
I'm sure a lot of the features are already probot apps too
Yep:
- Create a new comment on newly opened issues (if not in the org): https://github.com/behaviorbot/welcome
- Reply to issue with canned response when Needs Info label is added: (similar idea, doesn't do on-label): https://github.com/behaviorbot/request-info
- Notify committer in PR of test failures in TravisCI, and add OS/node.js version that failed, with direct link to log: (similar, also copies bits of the error logs back to the issue): https://github.com/JasonEtco/ci-reporter
- Add Has PR label to issues that have been referenced in a PR: https://github.com/rsarky/helpr
A couple of these are only kind of the right fit for the related feature - might be worth rewriting them into one app anyway, but its up to you.
from babel-bot.
Yeah, possible that most of them are simple enough to do anyway - would be nice to be able to import it as a dep and then run it from one app
from babel-bot.
You actually can, by npm install
-ing the repo (since most of them aren't on NPM) then either calling the exported function with your own robot
:
module.exports = robot => {
someOtherProbotApp(robot)
anotherProbotApp(robot)
}
robot
is effictively an event emitter, so calling those apps' exported functions is adding a new event handler via robot.on
, and it gets all the magical authentication bits from the over-arching app's robot
.
Or, we also have some docs for "combining apps".
Only issue with doing this is that unless the app is exactly what you need, you can't configure or change it. That's typical for dependencies in general, but Probot doesn't have a way of passing options on an app level (there is context.config
but thats per-repo).
from babel-bot.
Ok sounds like what babel's presets were originally before: just an array of plugins. But then we added preset and plugin option to be able to configure
from babel-bot.
Related Issues (20)
- Don't add "new issue" comment if user has submitted more that X issues
- Add a comment on PR with link to release
- Auto label issue with "triage"?
- PR Opened: Label if package.json updated
- Update yarn.lock if package.json has been updated
- Can I get more info around setup? HOT 1
- Remove +1, -1
- Close issue after no response for x days
- PR Opened: Remove Label after Has PR is added
- Add babel-bot to the Babel org HOT 1
- Reverse Greenkeeper
- [Question] vscode configuration HOT 2
- Core members HOT 3
- Update prod to Node.js v6.10 HOT 2
- Automatically deploy babel-bot from master HOT 3
- Comments twice on PR with link to repl HOT 4
- Run `eslint --fix` when requested
- extraneous double quotes at end of posted comment on issues HOT 2
- [Question] Bot behavior in 2016 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-bot.