Skip to content

Commit e6ca1a6

Browse files
committed
Addresses OpenHistoricalMap/issues#1299 by removing an inappropriate test on the translatewiki branch
1 parent 02976ee commit e6ca1a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dangerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ modified_yml_files = git.modified_files.select do |file|
1515
end
1616

1717
# Report if some translation file (except en.yml) is modified
18-
if modified_yml_files.empty?
18+
if modified_yml_files.empty? or branch_for_head == 'translatewiki'
1919
auto_label.remove("inappropriate-translations")
20-
else
20+
elseq
2121
modified_files_str = modified_yml_files.map { |file| "`#{file}`" }.join(", ")
2222
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.")
2323
auto_label.set(pr_number, "inappropriate-translations", "B60205")

0 commit comments

Comments
 (0)