Aminda Suomalainen
|
e4c02b96cd
|
Add pre-commit configuration (#34)
* add .pre-commit-config.yaml
Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>
* .editorconfig: decrease indent size for text
* .pre-commit-config.yaml: remove prettier
Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>
* .editorconfig consistency.
* .pre-commit-config.yaml: restore sample hooks
* .editorconfig: disable indent_size for LICENSE & NOTICE
* pre-commit run --all-files
* tsconfig.json: tabs to spaces
* .pre-commit-config.yaml: update editorconfig-checker to 2.7.2
* .editorconfig: disable indent_size for markdown
* mjolnir-entrypoint.sh: retab
* .editorconfig: also exclude json from indent checking
* test/nginx.conf: retab
* test/integration/commands/redactCommandTest.ts: remove leading space
* retab or remove leading whitespaces for the rest of the files
* src/appservice/datastore.ts remove newlines
* test/integration/commands/roomTest.ts: remove leading space.
---------
Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>
Co-authored-by: gnuxie <Gnuxie@protonmail.com>
|
2023-08-29 13:38:00 +01:00 |
|
gnuxie
|
4f1781e31b
|
Rename the bot from Mjolnir to Draupnir in the documentation
Following through with this everywhere will take a lot of time.
|
2023-02-08 15:04:42 +00:00 |
|
Gnuxie
|
333c55e18c
|
Config fixes (#432)
* Use the npm package `config` to load the config.
This is what was used prior to https://github.com/matrix-org/mjolnir/pull/347.
It was a nice idea motivated to drop a dependency that was confusing.
It was just never followed through and was underestimated how much disruption it would cause.
It was also believed that the library would mean there could only ever be one global copy of the config,
It was followed up by:
https://github.com/matrix-org/mjolnir/pull/369
https://github.com/matrix-org/mjolnir/pull/357
https://github.com/matrix-org/mjolnir/pull/429
https://github.com/matrix-org/mjolnir/pull/397/files
https://github.com/matrix-org/mjolnir/issues/365
For simplicity sake I am reinstating the library.
The practice of loading default.yaml by default is also dangerous
and has led to issues multiple times in #mjolnir:matrix.org.
It is a sample and not a default.
In a following commit I will be adding the ability to specify the
config to use from the cli.
* Allow config to be specified with an explicit cli argument.
* Update doc to transition away from old config handling
|
2022-11-23 10:55:22 +00:00 |
|
Jonathan de Jong
|
bf7f1318af
|
Improve documentation (#277)
* improve documentation
* incorperate documentation of configuration into sample file
|
2022-05-20 12:19:26 +01:00 |
|