Procházet zdrojové kódy

Added a message that tells users to upgrade growi

Taichi Masuyama před 4 roky
rodič
revize
5c959a88a3
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      packages/slackbot-proxy/src/controllers/slack.ts

+ 5 - 0
packages/slackbot-proxy/src/controllers/slack.ts

@@ -228,6 +228,8 @@ export class SlackCtrl {
           + `• ${new URL('/admin/slack-integration', growiUrl).toString()}`;
           + `• ${new URL('/admin/slack-integration', growiUrl).toString()}`;
       });
       });
 
 
+      const growiDocsLink = 'https://docs.growi.org/en/admin-guide/upgrading/43x.html';
+
       return client.chat.postEphemeral({
       return client.chat.postEphemeral({
         text: 'Error occured.',
         text: 'Error occured.',
         channel: body.channel_id,
         channel: body.channel_id,
@@ -238,6 +240,9 @@ export class SlackCtrl {
           markdownSectionBlock(
           markdownSectionBlock(
             `To use this command, modify settings from following pages: ${linkUrlList}`,
             `To use this command, modify settings from following pages: ${linkUrlList}`,
           ),
           ),
+          markdownSectionBlock(
+            `Or, if your GROWI version is 4.3.0 or below, upgrade GROWI to use commands: ${growiDocsLink}`,
+          ),
         ],
         ],
       });
       });
     }
     }