Instead of only a single JSON file, updated every so often, also
generate HTML pages that show CI broker status, and lists every
repository for which the broker has run CI.
This currently assumes the native CI adapter, but that can be fixed to
be more generic later.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
It's more tidy if every module has its own error type, to avoid
unnecessary coupling and tangling between modules.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Include context information to the adapter(s) about the trigger, distinguishing a trigger for a patch and a trigger for a push (possibly to a patch), according to the architecture.
Specifically, add push information for git pushes, including commit(s) and author.
For patches, add information about the specific patch that was updated, its revisions, along with the latest revision and the commits it includes.
feat: read configuration from a file
The configuration file specifies what adapters are available, and
environment variables to set for each, and the node event filtering
that is applied.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Have a top level error type that users of the library can import. Then
have a per-module error type so that errors returned by that module
can be as specific and precise as they can be.
Signed-off-by: Lars Wirzenius <liw@liw.fi>