A matrix version of the gerritbot.
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
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.