Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically post a warning comment when translation files are changed #55922

Merged
merged 1 commit into from
Mar 8, 2022

Conversation

Qrox
Copy link
Contributor

@Qrox Qrox commented Mar 7, 2022

Summary

None

Purpose of change

Once in a while people come up with a pull request that modifies the .po files. These files are only supposed to be pulled from Transifex automatically and should not be modified in other PRs.

Describe the solution

Add a github action that automatically detects translation file changes, and post a warning comment if a skip phrase Translation file changes are intended is not found in the PR body.

The pull translation action is updated to include the skip phrase.

Describe alternatives you've considered

Explain in person everytime someone changes the files.

Testing

Qrox#7 triggers the warning by modifying a .po file. The comment is only posted once, but the action always fails.
Qrox#6 does not trigger the warning by including the skip phrase. (The action results in that PR are from Qrox#7, probably because the two PRs are based on the same branch. The actual action result is here)

@github-actions github-actions bot added json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Mar 7, 2022
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Mar 7, 2022
@NetSysFire NetSysFire added Code: Tests Measurement, self-control, statistics, balancing. Translation I18n labels Mar 7, 2022
@ZhilkinSerg ZhilkinSerg merged commit c54807e into CleverRaven:master Mar 8, 2022
@Qrox Qrox deleted the po branch March 9, 2022 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions Code: Tests Measurement, self-control, statistics, balancing. json-styled JSON lint passed, label assigned by github actions Translation I18n
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants