From: Andy Allan Date: Wed, 16 Oct 2024 13:29:39 +0000 (+0100) Subject: Rephrase translation label, and fix link to docs X-Git-Tag: live~74^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/33d6580f414714408f74872ab9ef5b73c4b92972?hp=e307b9037a05fb6ea0a8790cb6f6e0824781e949 Rephrase translation label, and fix link to docs --- diff --git a/Dangerfile b/Dangerfile index 3898f680f..3445f5705 100644 --- a/Dangerfile +++ b/Dangerfile @@ -16,16 +16,16 @@ end # Report if some translation file (except en.yml) is modified if modified_yml_files.empty? - auto_label.remove("Compromised Translations") + auto_label.remove("Inappropriate Translations") else modified_files_str = modified_yml_files.map { |file| "`#{file}`" }.join(", ") warn("The following YAML files other than `en.yml` have been modified: #{modified_files_str}. Only `en.yml` is allowed to be changed. Translations are updated via Translatewiki, see CONTRIBUTING.md.") - auto_label.set(pr_number, "Compromised Translations", "B60205") + auto_label.set(pr_number, "Inappropriate Translations", "B60205") end # Report if there are merge-commits in PR if git.commits.any? { |c| c.parents.count > 1 } - warn("Merge commits are found in PR. Please rebase to get rid of the merge commits in this PR and read CONTRIBUTE.md.") + warn("Merge commits are found in PR. Please rebase to get rid of the merge commits in this PR, see CONTRIBUTING.md.") auto_label.set(pr_number, "Merge Commits", "D93F0B") else auto_label.remove("Merge Commits")