Skip to content

Commit 9d8b85e

Browse files
committed
Optionally enclose commit title and/or author into backticks
Introduce two new webhook section settings: - SLACK_BACKTICKS_AUTHOR - SLACK_BACKTICKS_TITLE These two allow the commit message or its title and/or its author to be enclosed in backticks before sending to Slack. This prevents Slack from interpreting the respective payload from being interpreted as Slack-style markdown.
1 parent c53b7e9 commit 9d8b85e

37 files changed

+107
-9
lines changed

conf/app.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,10 @@ DELIVER_TIMEOUT = 15
350350
SKIP_TLS_VERIFY = false
351351
; The number of history information in each page.
352352
PAGING_NUM = 10
353+
; Enclose commit author into backticks for Slack
354+
SLACK_BACKTICKS_AUTHOR = false
355+
; Enclose commit titls into backticks for Slack
356+
SLACK_BACKTICKS_TITLE = false
353357

354358
; General settings of loggers.
355359
[log]

conf/locale/locale_bg-BG.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,8 @@ config.webhook_config=Конфигурация на уеб-куки
13271327
config.webhook.types=Types
13281328
config.webhook.deliver_timeout=Deliver timeout
13291329
config.webhook.skip_tls_verify=Skip TLS verify
1330+
config.webhook.slack_backticks_author=Enclose commit author into backticks for Slack
1331+
config.webhook.slack_backticks_title=Enclose commit title into backticks for Slack
13301332

13311333
config.git_config=Конфигурация на git
13321334
config.git.disable_diff_highlight=Disable diff syntax highlight

conf/locale/locale_cs-CZ.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,8 @@ config.webhook_config=Nastavení webových háčků
13271327
config.webhook.types=Types
13281328
config.webhook.deliver_timeout=Deliver timeout
13291329
config.webhook.skip_tls_verify=Skip TLS verify
1330+
config.webhook.slack_backticks_author=Enclose commit author into backticks for Slack
1331+
config.webhook.slack_backticks_title=Enclose commit title into backticks for Slack
13301332

13311333
config.git_config=Konfigurace Gitu
13321334
config.git.disable_diff_highlight=Disable diff syntax highlight

conf/locale/locale_de-DE.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,8 @@ config.webhook_config=Webhook-Konfiguration
13271327
config.webhook.types=Typen
13281328
config.webhook.deliver_timeout=Zeitlimit für Zustellung
13291329
config.webhook.skip_tls_verify=TLS-Prüfung überspringen
1330+
config.webhook.slack_backticks_author=Enclose commit author into backticks for Slack
1331+
config.webhook.slack_backticks_title=Enclose commit title into backticks for Slack
13301332

13311333
config.git_config=Git Konfiguration
13321334
config.git.disable_diff_highlight=Diff-Syntaxhervorhebung ausschalten

conf/locale/locale_en-GB.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,6 +1404,8 @@ config.webhook_config=Webhook Configuration
14041404
config.webhook.types=Types
14051405
config.webhook.deliver_timeout=Deliver timeout
14061406
config.webhook.skip_tls_verify=Skip TLS verify
1407+
config.webhook.slack_backticks_author=Enclose commit author into backticks for Slack
1408+
config.webhook.slack_backticks_title=Enclose commit title into backticks for Slack
14071409

14081410
config.git_config=Git Configuration
14091411
config.git.disable_diff_highlight=Disable diff syntax highlight

conf/locale/locale_en-US.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,6 +1328,8 @@ config.webhook_config = Webhook configuration
13281328
config.webhook.types = Types
13291329
config.webhook.deliver_timeout = Deliver timeout
13301330
config.webhook.skip_tls_verify = Skip TLS verify
1331+
config.webhook.slack_backticks_author=Enclose commit author into backticks for Slack
1332+
config.webhook.slack_backticks_title=Enclose commit title into backticks for Slack
13311333

13321334
config.git_config = Git configuration
13331335
config.git.disable_diff_highlight = Disable diff syntax highlight

conf/locale/locale_es-ES.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,8 @@ config.webhook_config=Configuración de Webhooks
13271327
config.webhook.types=Types
13281328
config.webhook.deliver_timeout=Deliver timeout
13291329
config.webhook.skip_tls_verify=Skip TLS verify
1330+
config.webhook.slack_backticks_author=Enclose commit author into backticks for Slack
1331+
config.webhook.slack_backticks_title=Enclose commit title into backticks for Slack
13301332

13311333
config.git_config=Configuración de Git
13321334
config.git.disable_diff_highlight=Disable diff syntax highlight

conf/locale/locale_fa-IR.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,6 +1329,8 @@ config.webhook_config=تنظیمات Webhook
13291329
config.webhook.types=Types
13301330
config.webhook.deliver_timeout=Deliver timeout
13311331
config.webhook.skip_tls_verify=Skip TLS verify
1332+
config.webhook.slack_backticks_author=Enclose commit author into backticks for Slack
1333+
config.webhook.slack_backticks_title=Enclose commit title into backticks for Slack
13321334

13331335
config.git_config=پیکربندی Git
13341336
config.git.disable_diff_highlight=Disable diff syntax highlight

conf/locale/locale_fi-FI.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,8 @@ config.webhook_config=Webkoukku asetukset
13271327
config.webhook.types=Tyypit
13281328
config.webhook.deliver_timeout=Toimitus aikakatkaisu
13291329
config.webhook.skip_tls_verify=Ohita TLS tarkistaminen
1330+
config.webhook.slack_backticks_author=Enclose commit author into backticks for Slack
1331+
config.webhook.slack_backticks_title=Enclose commit title into backticks for Slack
13301332

13311333
config.git_config=Git asetukset
13321334
config.git.disable_diff_highlight=Poista koodinväritys käytöstä diff-näkymässä

conf/locale/locale_fr-FR.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,8 @@ config.webhook_config=Configuration Webhook
13271327
config.webhook.types=Types
13281328
config.webhook.deliver_timeout=Délai de livraison
13291329
config.webhook.skip_tls_verify=Ignorer la vérification TLS
1330+
config.webhook.slack_backticks_author=Enclose commit author into backticks for Slack
1331+
config.webhook.slack_backticks_title=Enclose commit title into backticks for Slack
13301332

13311333
config.git_config=Configuration de Git
13321334
config.git.disable_diff_highlight=Désactiver la coloration syntaxique des différences

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy