No description
Find a file
2011-01-03 16:13:30 -08:00
lib raw does not work with jsonp in the browser, disable it 2010-12-20 11:32:54 -08:00
vows add vows 2010-11-07 22:01:21 -08:00
LICENSE first commit, implements most of the reading API 2010-11-07 15:58:39 -08:00
Makefile add vows 2010-11-07 22:01:21 -08:00
package.json make vows a dev dependency 2011-01-03 16:13:30 -08:00
Readme.md resolve name conflicts, update readme 2010-11-07 21:59:33 -08:00

gitter

A GitHub client inspired by pengwynn/octopussy.

v2 API

Installation

npm install gitter

Usage

var gh = require('gitter')
gh.user('samsonjs', function(err, user) {
  if (err) throw err
  console.log('---- user: samsonjs ----')
  console.dir(user)
})

gh.repo('samsonjs/gitter', function(err, repo) {
  if (err) throw err
  console.log('---- repo: ' + repo.owner + '/' + repo.name + ' ----')
  console.dir(repo)
}).getWatchers(function(err, repos) {
  if (err) throw err
  console.log('---- watchers ----')
  console.dir(repos)
}).getBranches(function(err, branches) {
  if (err) throw err
  console.log('---- branches: samsonjs/gitter ----')
  console.dir(branches)
  gh.commit(this.repo, branches['master'], function(err, commit) {
    if (err) throw err
    console.log('---- samsonjs/gitter/master commit: ' + commit.id + ' ----')
    console.dir(commit.data())
  })
})

For the full API have a look at the top of lib/index.js.

License

Copyright 2010 Sami Samhuri sami.samhuri@gmail.com

MIT (see included LICENSE)