BlueGit

timfa bluegit

Files

bluegit / internal / i18n / catalog_webhook.go

catalog_webhook.go

feat: stuur volledige details mee in webhook-payloads
timfa project_87923614_bot_3aff574f6f98414b945a8799374f9092 · pushed by timfa · 3 weeks ago
3ca4d219 History
catalog_webhook.go 4.3 KiB Download Raw
1package i18n
2
3func init() {
4 addCatalog(en, webhookEN)
5 addCatalog(nl, webhookNL)
6 addCatalog(de, webhookDE)
7 addCatalog(fr, webhookFR)
8}
9
10var webhookEN = map[string]string{
11 "info.sec.webhooks": "Webhook payloads",
12 "info.wh.spec": "OpenAPI",
13 "info.wh.lead": "An empty body template sends this JSON document. pipeline_success and pipeline_failure include the pipeline id, status, ref, sha, commit message, author and duration, and every job with its name, stage, status, duration, allow_failure and web URL. A failed job also includes the last 200 log lines, at most 64 KiB. Secret values of at least 8 characters are replaced with [MASKED]. log_truncated is true when the log was cut. log_url points at the full log. A push includes ref, before, after and up to 20 commits, each with sha, message, author and URL. A merge request includes id, title, description, source branch, target branch, status, author and the action opened, merged or commented. A comment action also includes the comment text. A release includes the tag, name, commit and assets with URLs.",
14 "hook.mrMerged": "merge request !%s merged: %s",
15 "hook.mrComment": "comment on merge request !%s",
16}
17
18var webhookNL = map[string]string{
19 "info.sec.webhooks": "Webhook-payloads",
20 "info.wh.spec": "OpenAPI",
21 "info.wh.lead": "Een leeg body-sjabloon stuurt dit JSON-document. pipeline_success en pipeline_failure bevatten het pipeline-id, de status, ref, sha, commitboodschap, auteur en duur, en elke job met naam, stage, status, duur, allow_failure en web-URL. Een gefaalde job bevat ook de laatste 200 logregels, maximaal 64 KiB. Geheimwaarden van minstens 8 tekens worden [MASKED]. log_truncated is true als de log is afgekapt. log_url wijst naar de volledige log. Een push bevat ref, before, after en hoogstens 20 commits, elk met sha, message, auteur en URL. Een merge request bevat id, titel, beschrijving, bronbranch, doelbranch, status, auteur en de actie opened, merged of commented. Bij een commentaar hoort ook de tekst. Een release bevat tag, naam, commit en assets met URL's.",
22 "hook.mrMerged": "merge request !%s samengevoegd: %s",
23 "hook.mrComment": "reactie op merge request !%s",
24}
25
26var webhookDE = map[string]string{
27 "info.sec.webhooks": "Webhook-Nutzdaten",
28 "info.wh.spec": "OpenAPI",
29 "info.wh.lead": "Eine leere Body-Vorlage sendet dieses JSON-Dokument. pipeline_success und pipeline_failure enthalten Pipeline-Id, Status, Ref, SHA, Commit-Nachricht, Autor und Dauer, sowie jeden Job mit Name, Stage, Status, Dauer, allow_failure und Web-URL. Ein fehlgeschlagener Job enthält außerdem die letzten 200 Logzeilen, höchstens 64 KiB. Geheimwerte ab 8 Zeichen werden zu [MASKED]. log_truncated ist true, wenn das Log gekürzt wurde. log_url zeigt auf das vollständige Log. Ein Push enthält ref, before, after und höchstens 20 Commits mit SHA, Nachricht, Autor und URL. Ein Merge Request enthält Id, Titel, Beschreibung, Quellbranch, Zielbranch, Status, Autor und die Aktion opened, merged oder commented. Bei einem Kommentar steht der Text dabei. Ein Release enthält Tag, Name, Commit und Assets mit URLs.",
30 "hook.mrMerged": "Merge-Request !%s zusammengeführt: %s",
31 "hook.mrComment": "Kommentar zu Merge-Request !%s",
32}
33
34var webhookFR = map[string]string{
35 "info.sec.webhooks": "Charges utiles des webhooks",
36 "info.wh.spec": "OpenAPI",
37 "info.wh.lead": "Un modèle de corps vide envoie ce document JSON. pipeline_success et pipeline_failure contiennent l'id du pipeline, le statut, la ref, le sha, le message de commit, l'auteur et la durée, plus chaque job avec nom, stage, statut, durée, allow_failure et URL web. Un job en échec ajoute les 200 dernières lignes de log, 64 KiB au plus. Les valeurs secrètes d'au moins 8 caractères deviennent [MASKED]. log_truncated vaut true quand le log est coupé. log_url pointe vers le log complet. Un push contient ref, before, after et 20 commits au plus, chacun avec sha, message, auteur et URL. Une merge request contient id, titre, description, branche source, branche cible, statut, auteur et l'action opened, merged ou commented. Une action commented contient aussi le texte. Une release contient le tag, le nom, le commit et les assets avec leurs URL.",
38 "hook.mrMerged": "merge request !%s fusionnée : %s",
39 "hook.mrComment": "commentaire sur la merge request !%s",
40}