-
Notifications
You must be signed in to change notification settings - Fork 192
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
Cronjob #531
Cronjob #531
Conversation
✅ Deploy Preview for activist-org canceled.
|
Thank you for the pull request!The activist team will do our best to address your contribution as soon as we can. The following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :) If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the General and Development rooms once you're in. It'd be great to have you! Maintainer checklist
|
What about running this on PRs, @to-sta? Definitely opening an issue automatically would be cool! |
The thing is, say there's a big change to the codebase that we merge and then i18n needs to do some work right after. If we wait for 10+ days the repeats would be potentially annoying multiple people. Sorry if I didn't get this fully in the sync (long day 😅). Let me know what you think! |
I thought running this on every PR might be excessive. I believe that if we run this on every PR, we might end up running this script too often without creating value. What we could do instead is run this script only when certain files are changed. Here is an example on on:
pull_request:
paths:
- '**.js' We could target the en-US.json file and run the script whenever it changes. |
This is exactly what we should do, @to-sta! 😊 The magic of coding 🌈✨😇 Do you want to send along the change for that and we can merge it in? I'll be editing the JSON tomorrow or the next day and we can then see that it passes when they're all unique. |
Switched from a cronjob to targeting the file directly. I also added I still want to improve this a bit. The workflow will not fail, because we are not raising an error inside the python file or have a condition in the workflow. So we have to check the workflow run to see what has changed. Automatically creating an issue would make sense here (but consecutive commits would create a lot of Issues 😆). Let's improve this in another Issue 😄. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really great, @to-sta! I'll try to send along the i18n updates soon so we can test this :)
Contributor checklist
Description
Cronjob workflow for the find repeat i18n values python script. I gave it a test run with act.
@andrewtavis
The workflow does not fail. I think we could automatically create an issue with the result (I think that should be possible 😅) or have conditionals in the workflow. Let me know what you think would be useful, than we can add this functionally to the workflow.
The script is set to run at 6pm, every 14 days on a Monday.