octosync

1.1.19 • Public • Published

Octosync

Syncs GitHub issues to a RethinkDB and gets real-time updates.

npm install octosync

var Octosync = require('octosync')
var options = {
	token: 'GITHUB_TOKEN',
	username: 'GITHUB_USERNAME',
	repository: 'GITHUB_REPOSITORY'
};

var o = new Octosync(options);

// On start, it will sync everything.
o.start()

// Returns promises
o.syncUsers()
o.syncLabels()
o.syncIssues()

Defaults to connecting to localhost DB on port 28015.
Sets up GitHub webhook on port 27070 on path /octosync

Available Options

	db_host: "localhost"
	db_name: "octosync"
	db_port: 28015
	webhook_path: "/octosync"
	webhook_port: 27070
	webhook_secret: "GITHUB_WEBHOOK_SECRET"
	token: "GITHUB_TOKEN"
	username: "GITHUB_USERNAME"
	repository: "GITHUB_REPOSITORY"
           MMM.           .MMM
           MMMMMMMMMMMMMMMMMMM
           MMMMMMMMMMMMMMMMMMM      ________________
          MMMMMMMMMMMMMMMMMMMMM    |               |
         MMMMMMMMMMMMMMMMMMMMMMM   | Octosync! <3~ |
        MMMMMMMMMMMMMMMMMMMMMMMM   |_   ___________|
        MMMM::- -:::::::- -::MMMM    |/
         MM~:~   ~:::::~   ~:~MM
    .. MMMMM::. .:::+:::. .::MMMMM ..
          .MM::::: ._. :::::MM.
             MMMM;:::::;MMMM
      -MM        MMMMMMM
      ^  M+     MMMMMMMMM
          MMMMMMM MM MM MM
               MM MM MM MM
               MM MM MM MM
            .~~MM~MM~MM~MM~~.
         ~~~~MM:~MM~~~MM~:MM~~~~
        ~~~~~~==~==~~~==~==~~~~~~
         ~~~~~~==~==~==~==~~~~~~
             :~==~==~==~==~~

Readme

Keywords

Package Sidebar

Install

npm i octosync

Weekly Downloads

0

Version

1.1.19

License

ISC

Last publish

Collaborators

  • andrewvy