Commit Graph
11 Commits
Author SHA1 Message Date
Lars Wirzenius 443bf0b184 feat! generate HTML report pages
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>
2024-03-04 16:43:51 +02:00
Lars Wirzenius d6be37d7ee feat: update a status page, if configured
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-02-15 18:36:00 +02:00
Lars Wirzenius ab5197b7e4 fix: use git dependency on radicle, drop features
With this, importing radicle::prelude::RepoId works for me again.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-02-08 17:24:32 +02:00
Lars Wirzenius 0e80ed89e2 fix: import RepoId from identity module
rust-analyzer gets confused for me when it's imported from prelude.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-02-05 13:26:19 +02:00
Lars Wirzenius b483ab914d style: add note to errors.rs about module specific error types
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-02-05 13:24:48 +02:00
Lars Wirzenius 30ea57549e feat(src/error.rs): add errors from new modules
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-02-02 17:43:44 +02:00
Lars Wirzenius 0b862ab0ed refactor: add a ConfigError type for config.rs
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>
2024-01-29 16:37:52 +02:00
Lars Wirzenius a6da02f852 refactor: move message related errors from error.rs to msg.rs
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-01-26 17:16:27 +02:00
jchrist c3d223d7fc feat(adapter): enrich adapter run context
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.
2024-01-25 08:54:16 +02:00
Lars Wirzenius b4fb1e347b This is a combination of 2 commits.
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>
2023-12-14 20:18:21 +02:00
Lars Wirzenius f37948149b refactor: error types
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>
2023-12-14 16:28:44 +02:00