Skip to content

v1.10.2#285

Merged
TiTidom-RC merged 6 commits into
mainfrom
beta
Jun 22, 2026
Merged

v1.10.2#285
TiTidom-RC merged 6 commits into
mainfrom
beta

Conversation

@TiTidom-RC

Copy link
Copy Markdown
Owner

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:

  • Added a new GitHub Actions workflow (.github/workflows/js-check.yml) to check JavaScript syntax on pull requests affecting .js files in the beta branch.
  • Updated PHP (.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:

  • Improved filename sanitization in core/ajax/ttscast.ajax.php by adding accent removal, converting to lowercase, and refining character replacement to ensure safer and cleaner uploaded filenames.

Version update:

  • Bumped the plugin version from 1.10.1 to 1.10.2 in plugin_info/info.json.

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.
@TiTidom-RC
TiTidom-RC merged commit 66d607d into main Jun 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant