Skip to content

softwarefactory-project/gerritbot-matrix

Repository files navigation

gerritbot-matrix

A matrix version of the gerritbot.

Usage

To use the bot, you need to create a MATRIX_TOKEN environment variable. See the API_NOTES.md token section.

Optionally, create a MATRIX_IDENTITY_TOKEN and MATRIX_IDENTITY_PEPPER environment variable to lookup author account.

Then setup the configuration by editing the gerritbot.dhall file.

Run the bot with:

$ gerritbot-matrix --gerrit-host review.opendev.org --gerrit-user tristanC --homeserver-url https://matrix.org --config-file ./gerritbot.dhall

Contribute

To work on this project you need a Haskell toolchain, for example on fedora:

$ sudo dnf install -y ghc cabal-install && cabal update

Build and run the project:

$ cabal run gerritbot-matrix -- --help

If you experience any difficulties, please don't hesistate to raise an issue.

About

A bot that forward gerrit stream-events to matrix room

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published