Skip to content

Automatically enforce and normalize image filenames - #840

Open
quadrinex wants to merge 1 commit into
cat-milk:masterfrom
quadrinex:master
Open

Automatically enforce and normalize image filenames#840
quadrinex wants to merge 1 commit into
cat-milk:masterfrom
quadrinex:master

Conversation

@quadrinex

@quadrinex quadrinex commented Jul 26, 2026

Copy link
Copy Markdown

Summary

  • Adds check-pr-filenames.yml: on pull requests, flags any added/renamed image whose filename doesn't match the Name_Name_Book_Book.ext convention (words separated by underscores, each capitalized). Fails the check and posts an automatic comment with the expected filename.
  • Adds normalize-filenames.yml: on push to master (and via manual workflow_dispatch), scans all top-level folders and renames non-conforming image files in place, committing the fix directly. This also cleans up the existing backlog of inconsistently named files, and catches anything merged despite a failing PR check.

- check-pr-filenames.yml: flags PR-added images whose filenames don't
  match the Name_Name_Book_Book.ext convention and comments the expected
  rename, failing the check until fixed.
- normalize-filenames.yml: on push to master (or manual dispatch),
  renames non-conforming image files in place and commits the fix.
@quadrinex quadrinex changed the title Renamed An Image to be in the right format Automatically enforce and normalize image filenames Jul 26, 2026
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