v1.10.2#285
Merged
Merged
Conversation
Update Translations
Limit CI runs by adding path filters to pull_request triggers: PHP workflows now only run for '**/*.php' and Python checks run for 'resources/**/*.py'. Add a new js-check workflow that runs on PRs to beta for '**/*.js', sets up Node 22, and runs `node --check` on JS files (excluding node_modules) to catch syntax errors. This reduces unnecessary workflow executions and introduces basic JavaScript syntax validation.
Add workflow_dispatch to checkPHP, checkPHPCompat, checkPython, and js-check workflows so they can be triggered manually from the Actions UI. Existing triggers (branch/path filters) remain unchanged.
Update the GitHub Actions workflow (.github/workflows/js-check.yml) to use actions/setup-node@v5 instead of @v4. The node-version remains '22'; this change moves the workflow to the newer setup-node major release.
Tighten filename sanitization for uploaded custom sounds: apply sanitizeAccent(), transliterate to ASCII, convert to lowercase, replace non-alphanumeric/._- characters with underscores, and strip leading/trailing underscores or hyphens before the extension. Keeps existing validation to prevent empty filename bases after cleaning. Also increment pluginVersion to 1.10.2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements to code quality checks and file handling. The main changes include adding a new JavaScript syntax check workflow, refining existing GitHub Actions to only run on relevant file changes, improving filename sanitization for uploads, and bumping the plugin version.
Continuous Integration improvements:
.github/workflows/js-check.yml) to check JavaScript syntax on pull requests affecting.jsfiles in thebetabranch..github/workflows/checkPHP.yml), PHP compatibility (.github/workflows/checkPHPCompat.yml), and Python (.github/workflows/checkPython.yml) workflows to only run when relevant files are changed, reducing unnecessary CI runs. [1] [2] [3]File upload sanitization:
core/ajax/ttscast.ajax.phpby adding accent removal, converting to lowercase, and refining character replacement to ensure safer and cleaner uploaded filenames.Version update:
1.10.1to1.10.2inplugin_info/info.json.