[PR #2781] [CLOSED] I18n script runner #3802

Closed
opened 2026-04-25 00:17:07 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/2781
Author: @nichwall
Created: 3/22/2024
Status: Closed

Base: masterHead: i18n_script_runner


📝 Commits (2)

  • 9606cd4 Add i18n script branch workflows
  • d95f87b Fix name of manual workflow

📊 Changes

2 files changed (+124 additions, -0 deletions)

View changed files

.github/workflows/i18n-auto-branch.yml (+65 -0)
.github/workflows/i18n-manual-branch.yml (+59 -0)

📄 Description

This PR includes 2 new workflows:

  • i18n-auto-branch which automatically runs the key-copying script on pushes to the main/master branch and opens a branch with the updated files if there were any changes
  • i18n-manual-branch which can be manually triggered

The branch workflows are identical other than the trigger condition to allow for disabling the automatic workflow without removing the ability to run the manual workflow.

These two workflows will need write access to be able to create the branch and PR. These also require defining the USER_EMAIL and USER_NAME secrets for the git initialization. These values don't necessarily need to be secrets, but felt better to do that instead of just including a default value in the action.

These workflows make use of the https://github.com/audiobookshelf/audiobookshelf-i18n-updater GitHub action. The script this action runs ensures a newline at the end of each i18n file so the last line stops showing up as a change when viewing the diff when the number of lines changes in an i18n file.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/2781 **Author:** [@nichwall](https://github.com/nichwall) **Created:** 3/22/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `i18n_script_runner` --- ### 📝 Commits (2) - [`9606cd4`](https://github.com/advplyr/audiobookshelf/commit/9606cd48d22d70aad4a2ae780fc6491b42f5edaf) Add i18n script branch workflows - [`d95f87b`](https://github.com/advplyr/audiobookshelf/commit/d95f87bc5282eacb69399afc9cd90ea2601690bc) Fix name of manual workflow ### 📊 Changes **2 files changed** (+124 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/i18n-auto-branch.yml` (+65 -0) ➕ `.github/workflows/i18n-manual-branch.yml` (+59 -0) </details> ### 📄 Description This PR includes 2 new workflows: - `i18n-auto-branch` which automatically runs the key-copying script on pushes to the main/master branch and opens a branch with the updated files if there were any changes - `i18n-manual-branch` which can be manually triggered The branch workflows are identical other than the trigger condition to allow for disabling the automatic workflow without removing the ability to run the manual workflow. These two workflows will need write access to be able to create the branch and PR. These also require defining the USER_EMAIL and USER_NAME secrets for the git initialization. These values don't necessarily need to be secrets, but felt better to do that instead of just including a default value in the action. These workflows make use of the https://github.com/audiobookshelf/audiobookshelf-i18n-updater GitHub action. The script this action runs ensures a newline at the end of each i18n file so the last line stops showing up as a change when viewing the diff when the number of lines changes in an i18n file. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:17:07 +02:00
adam closed this issue 2026-04-25 00:17:07 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3802