gerrit-event-emitter
A thin wrapper of gerrit-stream which inherits from EventEmitter2.
Getting Started
Install the module with: npm install gerrit-event-emitter
var GerritEventEmitter = require('gerrit-event-emitter').GerritEventEmitter,
gerritEventEmitter = new GerritEventEmitter('gerrit.example.com', 29418);
gerritEmitter.on('patchsetCreated', function(eventData) {
});
Documentation
The GerritEventEmitter
class inherited from EventEmitter2.
So you can use EventEmitter2 methods basically.
Available event names:
patchsetCreated
changeAbandoned
changeRestored
changeAbandoned
changeRestored
changeMerged
commentAdded
refUpdated
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Release History
- 2014-04-18 v0.1.1 First release.
License
Copyright (c) 2014 Shogo Iwano
Licensed under the MIT license.