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

Move extract-translations task to pre-commit hook #434

Merged
merged 1 commit into from
Oct 21, 2021
Merged

Conversation

denniskigen
Copy link
Member

@denniskigen denniskigen commented Oct 15, 2021

Requirements

  • This PR has a title that briefly describes the work done, including the ticket number if there is a ticket.
  • My work conforms to the OpenMRS 3.0 Styleguide.
  • I checked for feature overlap with existing widgets.

Summary

yarn run extract-translations should run pre-commit so that the updated translation files get committed.

Occasionally, after updating your local branch, you'll see uncommitted translation files show up in your IDE git diff. Moving this task to the pre-commit hook affords the committer a chance to include any potentially updated translations without having to amend their commits or push subsequent commits just for that purpose.

`yarn run extract-translations` should run pre-commit so that the updated translation files get committed.
@denniskigen denniskigen changed the title Move extract translations task to pre-commit hook Move extract-translations task to pre-commit hook Oct 15, 2021
@brandones brandones merged commit f25aa92 into master Oct 21, 2021
@brandones brandones deleted the pre-commit branch October 21, 2021 15:51
@Josephkagimu1
Copy link

was this issue closed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants