Ver código fonte

tests (untranslated_entities): surface the errors as errors

Messages are now showing as Warnings in the output, but are not shown
inline in the PR, as they are only warnings. Elevate them to errors.
Jason Rumney 2 meses atrás
pai
commit
b389c5d5b9
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      util/untranslated_entities.py

+ 1 - 1
util/untranslated_entities.py

@@ -27,7 +27,7 @@ def main() -> int:
             slug = slugify(entity.name)
             if slug in translations:
                 print(
-                    f"::warning file={config},line={entity._config.__line__}:: Entity can use translation_key: {slug}"
+                    f"::error file={config},line={entity._config.__line__}:: Entity can use translation_key: {slug}"
                 )
     return 0