You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To avoid requiring project maintainers to deal with Crowdin, we have created separate repos which mirror the source content from the project websites. There are nightly crons which use rsync to update the content, and submit a PR to the respective scientific-python-translations mirror repo if the content has been updated. An annoyance is that this requires keeping up to date with these PRs. If they are not merged, then currently, a fresh one will be created each night. Also, the current design causes a proliferation of branches to be created, but no means to clean them up automatically.
It would be good if:
Key parts of the syncing workflow are abstracted into its own GitHub action for reusability.
The bot in the workflow could sign its commits, so we can merge the pull requests automatically without having to worry about someone spoofing the bot.
Only a single branch is used to avoid the proliferation of branches, and as a fallback in case something goes wrong with the auto-merging or its turned off, at most one PR should be kept open. If the cron runs while another PR is open, the workflow should check if there's been a change with respect to that PR, and only make an update to it if a change was actually made.
Acceptance Criteria
A new GitHub action for the syncing content is created.
A GitHub user is created for the bot, it signs its commits, and its PRs are merged automatically.
Workflow is modified so that at most one related branch per repo is kept open at a time.
Summary
The workflows for keeping source content up to date (see https://github.com/Scientific-Python-Translations/pandas-translations/blob/main/.github/workflows/sync.yml for an example) have several drawbacks that would be good to fix.
To avoid requiring project maintainers to deal with Crowdin, we have created separate repos which mirror the source content from the project websites. There are nightly crons which use rsync to update the content, and submit a PR to the respective scientific-python-translations mirror repo if the content has been updated. An annoyance is that this requires keeping up to date with these PRs. If they are not merged, then currently, a fresh one will be created each night. Also, the current design causes a proliferation of branches to be created, but no means to clean them up automatically.
It would be good if:
Acceptance Criteria
Tasks to complete
Tasks listed above.
@goanpeca @trallard
The text was updated successfully, but these errors were encountered: