From 37539fa1866c022a436c411dfe20639fa91f9fec Mon Sep 17 00:00:00 2001 From: maqor <quantum@cert.ccc.de> Date: Mon, 27 Dec 2021 03:06:34 +0100 Subject: [PATCH] Add: section about notifications by Rocket.Cat --- docs/maps.en.md | 9 +++++++++ docs/maps.md | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/docs/maps.en.md b/docs/maps.en.md index 279e83a..47bc866 100644 --- a/docs/maps.en.md +++ b/docs/maps.en.md @@ -92,6 +92,15 @@ that is the case, the back office will notify you and show you an appropriate error along with a short explanation — so in case your map doesn't change even after waiting and multiple reloads, please take a look there and check. +#### Automatic notification +You can also be notified automatically when there is a new linter result. +To do this, create a file named `.mapservice` in the root directory of your repo. +In this file you enter in which channel of the CCCV rocket chat the bot should write: +`{"rocket_channel" : "#<CHANNEL>"}`. The channel can also be a person, +in this case you enter `{"rocket_channel" : "@nick"}` in the file. + +Important: The account `Rocket.Cat` needs to be able to access your channel. + ### Links between maps Within your repository you can use normal, relative links — e.g. to get from one map in `main.json` to another at `garden/secret-base.json`, just enter the diff --git a/docs/maps.md b/docs/maps.md index f673a75..6be41a3 100644 --- a/docs/maps.md +++ b/docs/maps.md @@ -100,6 +100,16 @@ einfach im falschen Format ist. In diesem Fall wird euch das im Maschinenraum angezeigt und entsprechend begründet — falls sich eure Karte also auch nach mehrmaligem Neuladen nicht verändert hat, schaut bitte einmal dort nach. +#### Automatische Benachrichtigung +Ihr könnt euch auch automatisch benachrichtigen lassen, wenn es ein neues Linter-Ergebnis gibt. +Dazu legt ihr im Hauptverzeichnis eures Repos eine Datei namens `.mapservice` an. In dieser +tragt ihr dann ein, in welchen Channel des CCCV-Rocketchats der Bot schreiben soll: +`{"rocket_channel" : "#<CHANNEL>"}`. Der Channel kann dabei auch eine Person sein, dann +tragt ihr `{"rocket_channel" : "@nick"}` in die Datei ein. + +Wichtig: Der Account `Rocket.Cat` muss auf euren Channel zugreifen können. + + ### Links zwischen einzelnen Karten Innerhalb eures Repositories könnt ihr ganz normale relative Links benutzen — -- GitLab