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

feat(core): fail PRs that commit forbidden files - #117

Merged
justanotherariel merged 1 commit into
mainfrom
justanotherariel-forbidden-files
Nov 10, 2026
Merged

justanotherariel merged 1 commit into
mainfrom
justanotherariel-forbidden-files

Conversation

@justanotherariel

Copy link
Copy Markdown
Member

Proposed change

Adds a generic forbiddenFiles({ base?, files }) rule: a table of path patterns, each with the file statuses that count (default: anything but a removal) and a reason. It reports one member-waivable "Forbidden files" row that lists the matched paths per entry. It only checks PRs into base, so release PRs are skipped.

home-assistant/core enables it with two entries:

  • generated homeassistant/components/*/translations/ files (added or modified)
  • newly added device_trigger.py, device_action.py and device_condition.py, which are no longer accepted

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

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.

@justanotherariel
justanotherariel merged commit a75cb87 into main Nov 10, 2026
8 checks passed
@justanotherariel
justanotherariel deleted the justanotherariel-forbidden-files branch November 10, 2026 12:56
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