Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

feat(core): fail PRs that include generated translation files - #100

Closed
joostlek wants to merge 1 commit into
mainfrom
clanker/sleepy-ride-r1uyz0
Closed

joostlek wants to merge 1 commit into
mainfrom
clanker/sleepy-ride-r1uyz0

Conversation

@joostlek

@joostlek joostlek commented Nov 9, 2026

Copy link
Copy Markdown
Member

Proposed change

Adds a no-translations check to the home-assistant/core manifest. Core's .gitignore excludes homeassistant/components/*/translations because those files are generated from strings.json, but contributors still commit them sometimes.

  • Fails when a PR adds or modifies a file under homeassistant/components/<domain>/translations/. The message lists the files (the first 5, then "and N more") and tells the contributor to remove them and only edit strings.json.
  • Passes when translation files are only removed, so cleaning up old committed files isn't blocked.
  • A member can waive it.
  • Runs when a PR is opened, reopened or updated with new commits, and on demand.

The core manifest snapshots are updated to include the new check.

Type of change

  • Dependency upgrade
  • Bugfix
  • New rule or command
  • New repository manifest (enable the bot on another repo)
  • New feature (which adds functionality to an existing engine)
  • Code quality improvement or refactor (incl. tests)

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • Local tests pass (mise run test). Your PR cannot be merged unless tests pass.
  • Lint and type checks pass (mise run check).
  • The code has been formatted (mise run format).
  • Tests have been added to verify that the new code works.
  • There is no commented out or debug code in this PR.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If behaviour, configuration, or environment variables changed:

  • README.md and .env.example have been updated accordingly.

Generated by Claude Code

@justanotherariel

Copy link
Copy Markdown
Member

Closing in favour of #117. It adds a generic forbiddenFiles rule, and committed translations/ files are one of its core entries.

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.

3 participants