-
Notifications
You must be signed in to change notification settings - Fork 5
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
How to automatically post issues when an English md is modified in the official guide #6
Comments
Maybe we can make a CRON with Github action that runs the above command every day or week |
Yes 👍 I would even suggest every month or less because the release pace for a new documented Ember release is not that fast. Being able to generate the diff with a CRON could be a nice first step just by itself. Next, there are many aspects of the issue we can think about: once the command is launched, what do we do with the result? The long-term idea would be to parse the diff in order to automatically open Github issues that follow a given template. |
Meanwhile for now, the guide is not entirely translated and we don't have a tool to automate the follow, so here is the manual way to apply the changes. Generate a diff between our current English version and the upstream English version:
Create a working branch to apply the diff:
=> The command fails to apply the patch on files that have already been translated into French.
After that, make sure to update the branch
|
I was able to automate the first set of commands to generate the diff file. Now I start how to transform the diff to respect the our codebase scaffolding ( |
My script is able to perform all the local actions:
Now I am working on posting issues on Github. |
It's alive #215! Not a CRON for now, but at least one command I can execute. |
Need
We want to know when we have work to do.
For instance, when this repo has been created, the version in
guides/release
we plan to translate is Ember 4.7.0. Now, when Ember Learn team will publish the guide for Ember 4.8.0, we want to be able to detect what templates were changed in this new version, so we have to rework the translation.First ideas
The perfect diff for us would be a diff between the English version our translation is based on and the new English version of the official guide. Comparing both English versions will point out the purpose of the change and highlight what needs to be rephrased in French.
To do so, we have:
ref-upstream
that corresponds to the upstream branch our translation is based on.diff
file the changes inupstream/master
compared to the current branch (would beref-upstream
) in the scope ofguides/release
folder (which is the only folder we are interested in):Issue
We need to figure out how to use the ideas above ⬆️ to actually imagine and implement a convenient workflow to follow the official guide changes.
The text was updated successfully, but these errors were encountered: