Skip to content

[CI] Auto-update versions in localized content files#9460

Merged
theletterf merged 1 commit intoopen-telemetry:mainfrom
vitorvasc:vitorvasc_auto-update-locale-versions
Mar 20, 2026
Merged

[CI] Auto-update versions in localized content files#9460
theletterf merged 1 commit intoopen-telemetry:mainfrom
vitorvasc:vitorvasc_auto-update-locale-versions

Conversation

@vitorvasc
Copy link
Copy Markdown
Member

  • I have read and followed the Contributing docs, especially the "First-time contributing?" section.
  • This PR has content that I did not fully write myself.
  • I have the experience and knowledge necessary to understand, review, and validate all content in this PR.1

The version auto-update script (scripts/auto-update/version-in-file.sh) only updates English files listed in all-versions.sh. Localized files (ja, zh, etc.) that have the same frontmatter version variables drift behind over time.

This PR adds an update_locale_files() function to version-in-file.sh that, after updating each English file under content/en/, automatically discovers and updates locale equivalents via a content/*/ glob. It silently skips locales where the file doesn't exist or lacks the relevant variable.

Footnotes

  1. Yes, I can answer maintainer questions about the content of this PR, without using AI.

Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
@vitorvasc vitorvasc requested a review from a team as a code owner March 20, 2026 14:12
Copilot AI review requested due to automatic review settings March 20, 2026 14:12
@otelbot-docs otelbot-docs Bot added the missing:docs-approval Co-owning SIG has provided approval, PR needs approval from docs maintainer label Mar 20, 2026
@vitorvasc vitorvasc added the CI/infra Repo CI & infrastructure label Mar 20, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds locale-awareness to the existing version auto-update automation so that localized content/*/ pages stay in sync with the version frontmatter variables maintained in the English sources under content/en/.

Changes:

  • Introduces update_locale_files() to discover locale equivalents for updated English content files and update matching version variables.
  • Invokes locale updates after each process_file run, skipping missing locale files or files without the target variable.

Comment thread scripts/auto-update/version-in-file.sh
@theletterf theletterf added this pull request to the merge queue Mar 20, 2026
@otelbot-docs otelbot-docs Bot added ready-to-be-merged This PR is ready to be merged by a maintainer and removed missing:docs-approval Co-owning SIG has provided approval, PR needs approval from docs maintainer labels Mar 20, 2026
Merged via the queue into open-telemetry:main with commit 73b56c4 Mar 20, 2026
29 checks passed
intuibase pushed a commit to intuibase/opentelemetry.io that referenced this pull request Apr 9, 2026
…9460)

Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
tiffany76 pushed a commit to tiffany76/opentelemetry.io that referenced this pull request Apr 13, 2026
…9460)

Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/infra Repo CI & infrastructure ready-to-be-merged This PR is ready to be merged by a maintainer

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants