| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
The `change-restored` stream event can include a `reason` field,
but this is not handled in the ChangeRestoredEvent class.
Add it.
|
| |
|
|
|
|
|
|
|
|
|
| |
The `comment-added` event can include multiple approvals, but the
current implementation does not support this. Refactor it to allow
multiple approvals to be handled.
Also add the description field in the approval object.
Refactor a bit to make the handling of supported approval categories
easier to extend later if necessary.
|
| |
|
|
|
| |
Add a new class GerritDraftPublishedEvent and include it in the
event handling.
|
| |
|
|
|
|
|
| |
Fix PEP-8 warnings found by the updated checker script.
Fix pylint warnings. Constructors of derived classes should call
the constructor of the base class.
|
| |
|
|
|
| |
Classes in Python should always inherit from object
these days.
|
| |
|
|
|
|
|
|
| |
The GerritCommentAddedEvent constructor was referencing a variable
that was not defined, thus causing NameError exception to be thrown.
Also improved the error messages in the exceptions, and fixed some
warnings reported by pylint.
|
| |
|
|
|
| |
When a listener is attached to the stream object, check that its
"on_gerrit_event" is callable.
|
| |
|
|
|
|
|
|
|
| |
Added constants for the event types and replaced debug prints with
exceptions.
Added initial unit tests covering the attach and detach methods.
Tidied up the docstrings a bit.
|
|
|
Added a new class GerritStream which listens to the output of the
gerrit stream-events command and generates events based on the
JSON events in the stream.
|