| 1 | package i18n |
| 2 | |
| 3 | func init() { |
| 4 | addCatalog(en, webhookEN) |
| 5 | addCatalog(nl, webhookNL) |
| 6 | addCatalog(de, webhookDE) |
| 7 | addCatalog(fr, webhookFR) |
| 8 | } |
| 9 | |
| 10 | var 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, web URL and console output. Each log is the last 200 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 is then present and is GET /api/v1/repos/{owner}/{repo}/jobs/{id}/log. That request needs Authorization: Bearer and a personal token that can read the repo. A push includes ref, before, after and up to 20 commits. Each commit has sha, message, author, timestamp, URL, changed files and diff_url. A file has status added, modified, removed or renamed, plus added and deleted line counts. The payload has no diff text. diff_url is GET /api/v1/repos/{owner}/{repo}/commits/{sha}/diff. A merge request includes id, title, description, source branch, target branch, status, author, action, reviewers, comments, up to 20 commits, diff statistics and diff_url, and no diff text. That diff_url is GET /api/v1/repos/{owner}/{repo}/merge-requests/{id}/diff. Both diff requests need Authorization: Bearer and a personal token that can read the repo. 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 | |
| 18 | var 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, web-URL en console-output. Elke log bevat de laatste 200 regels, maximaal 64 KiB. Geheimwaarden van minstens 8 tekens worden [MASKED]. log_truncated is true als de log is afgekapt. log_url staat er dan bij en is GET /api/v1/repos/{owner}/{repo}/jobs/{id}/log. Die aanvraag heeft Authorization: Bearer en een persoonlijk token dat de repo mag lezen. Een push bevat ref, before, after en hoogstens 20 commits. Elke commit heeft sha, message, auteur, timestamp, URL, gewijzigde bestanden en diff_url. Een bestand heeft status added, modified, removed of renamed, plus het aantal toegevoegde en verwijderde regels. De payload bevat geen difftekst. diff_url is GET /api/v1/repos/{owner}/{repo}/commits/{sha}/diff. Een merge request bevat id, titel, beschrijving, bronbranch, doelbranch, status, auteur, actie, reviewers, comments, hoogstens 20 commits, diffstatistieken en diff_url, en geen difftekst. Die diff_url is GET /api/v1/repos/{owner}/{repo}/merge-requests/{id}/diff. Beide diff-aanvragen hebben Authorization: Bearer en een persoonlijk token dat de repo mag lezen. 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 | |
| 26 | var 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, Web-URL und Konsolenausgabe. Jedes Log enthält die letzten 200 Zeilen, höchstens 64 KiB. Geheimwerte ab 8 Zeichen werden zu [MASKED]. log_truncated ist true, wenn das Log gekürzt wurde. log_url steht dann dabei und ist GET /api/v1/repos/{owner}/{repo}/jobs/{id}/log. Diese Anfrage braucht Authorization: Bearer und ein persönliches Token, das das Repo lesen darf. Ein Push enthält ref, before, after und höchstens 20 Commits. Jeder Commit hat SHA, Nachricht, Autor, Zeitstempel, URL, geänderte Dateien und diff_url. Eine Datei hat den Status added, modified, removed oder renamed, plus die Zahl hinzugefügter und gelöschter Zeilen. Die Nutzdaten enthalten keinen Diff-Text. diff_url ist GET /api/v1/repos/{owner}/{repo}/commits/{sha}/diff. Ein Merge Request enthält Id, Titel, Beschreibung, Quellbranch, Zielbranch, Status, Autor, Aktion, Reviewer, Kommentare, höchstens 20 Commits, Diff-Statistik und diff_url, und keinen Diff-Text. Diese diff_url ist GET /api/v1/repos/{owner}/{repo}/merge-requests/{id}/diff. Beide Diff-Anfragen brauchen Authorization: Bearer und ein persönliches Token, das das Repo lesen darf. 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 | |
| 34 | var 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, URL web et sortie console. Chaque log contient les 200 dernières lignes, 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 est alors présent et vaut GET /api/v1/repos/{owner}/{repo}/jobs/{id}/log. Cette requête exige Authorization: Bearer et un jeton personnel qui peut lire le dépôt. Un push contient ref, before, after et 20 commits au plus. Chaque commit a sha, message, auteur, horodatage, URL, fichiers modifiés et diff_url. Un fichier a le statut added, modified, removed ou renamed, plus le nombre de lignes ajoutées et supprimées. La charge utile ne contient pas le texte du diff. diff_url vaut GET /api/v1/repos/{owner}/{repo}/commits/{sha}/diff. Une merge request contient id, titre, description, branche source, branche cible, statut, auteur, action, relecteurs, commentaires, 20 commits au plus, statistiques de diff et diff_url, sans le texte du diff. Cette diff_url vaut GET /api/v1/repos/{owner}/{repo}/merge-requests/{id}/diff. Les deux requêtes de diff exigent Authorization: Bearer et un jeton personnel qui peut lire le dépôt. 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 | } |