Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/component/bot
Component bot helping keep the component community badass
https://github.com/component/bot
Last synced: 13 days ago
JSON representation
Component bot helping keep the component community badass
- Host: GitHub
- URL: https://github.com/component/bot
- Owner: component
- Created: 2012-10-27T21:23:12.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-09T23:29:19.000Z (about 11 years ago)
- Last Synced: 2024-05-08T17:16:44.599Z (8 months ago)
- Language: JavaScript
- Size: 124 KB
- Stars: 6
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# component-bot
Component bot helping keep the component community badass.
## API
### Bot(user:String, pass:String)
Initialize a new Bot with `user` / `pass`.
### Bot#issue(repo:String, title:String, body:String, [options]:Object)
Create an issue with the given `title`, `body`, and `options`.
bot
.issue('visionmedia/superagent', 'Some issue', 'Check this out')
.end(function(res){
console.log(res.status);
console.log(res.body);
})### Bot#commit(repo:String, msg:String, [fn]:Function)
Commit to `repo` with the given `msg` and invoke `fn(err)`.
bot.commit('visionmedia/superagent', 'add license property to component.json');### Bot#clone(repo:String, fn:Function)
Clone `repo` to the `/tmp` directory and invoke `fn(err, path)`.
bot.clone('visionmedia/superagent', fn);### Bot#fork(repo:String)
Fork `repo`.
### Bot#pullrequest(repo:String, title:String, body:String)
Send pull-request to `repo` with the given `title` and `body`.
## License
MIT