Skip to content
/ bot Public

Component bot helping keep the component community badass

Notifications You must be signed in to change notification settings

component/bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Component bot helping keep the component community badass

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published