diff --git a/.claude/agents/raise-pull-request.md b/.claude/agents/raise-pull-request.md index 2e7694540531..db2134980095 100644 --- a/.claude/agents/raise-pull-request.md +++ b/.claude/agents/raise-pull-request.md @@ -147,7 +147,7 @@ Select exactly ONE based on the changes. Mark the selected type with `[x]` and a | New integration | New folder in components/ | | New feature | Adds capability to existing integration | | Deprecation | Adds deprecation warnings for future breaking change | -| Breaking change | Removes or changes existing functionality | +| Breaking change | Breaks or removes something users rely on, including the removal at the end of an integration deprecation (also a YAML import). Removing a deprecated core API that nothing in core uses anymore is Code quality. See [When it is backward-incompatible](https://contributors.home-assistant.io/releases/guides/backward-incompatible-changes/#when-it-is-backward-incompatible) | | Code quality | Only refactoring or test additions, no functional change | **Track results:** diff --git a/.claude/skills/ha-deprecation-cleanup/SKILL.md b/.claude/skills/ha-deprecation-cleanup/SKILL.md index 29752ef52e92..d47f88dab9b0 100644 --- a/.claude/skills/ha-deprecation-cleanup/SKILL.md +++ b/.claude/skills/ha-deprecation-cleanup/SKILL.md @@ -83,12 +83,16 @@ new worktree, so one deprecation's changes never end up on another's branch. of the commit message. 4. Write a ready-to-paste PR description following `.github/PULL_REQUEST_TEMPLATE.md`, leaving unchecked boxes in place and putting the task issue (if one was found) on the - "fixes #" line. When users have to change something, check "Breaking change" and fill - in the breaking change section: what breaks, how to fix it and why. Removing a YAML - import whose deprecation period has ended is not a breaking change, because the - deprecation already announced it: check "Code quality improvements" and remove the - breaking change section, as the template allows. Don't commit the description. It goes - in the report. + "fixes #" line. Pick the type of change with [When it is backward-incompatible](https://contributors.home-assistant.io/releases/guides/backward-incompatible-changes/#when-it-is-backward-incompatible): + - Removing something from an integration, including a YAML import, is a breaking + change, because users who did not act on the repair are still affected. Check + "Breaking change" and fill in the breaking change section: what breaks, how to fix + it and why. + - Removing a deprecated core API, like a helper or a constant, that nothing in Home + Assistant Core uses anymore is not. Check "Code quality improvements" and remove the + breaking change section, as the template allows. + + Don't commit the description. It goes in the report. 5. Push only if the user (or the routine prompt) asked for it, to the remote they named, for example the user's fork, or `origin` for maintainers who keep branches upstream. Use a plain `git push `, and give the compare link to `dev` of diff --git a/AGENTS.md b/AGENTS.md index a811295b6d18..7653833ecef1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -18,7 +18,7 @@ This repository contains the core of Home Assistant, a Python 3 based home autom - When reviewing changes under `homeassistant/components/` or `tests/components/`, use the `ha-integration-knowledge` skill as the primary reference. - Flag comments that over-explain straightforward code, narrate the obvious, or read like AI commentary (multi-sentence justifications for a single line). - A Pull Request with a dependency version bump should only contain changes required for the version bump. If the PR includes other changes, request that they are removed from the PR. -- Do not ask to mark a Pull Request as a breaking change when it removes a YAML import whose deprecation period has ended; the deprecation already announced the removal. +- Use [When it is backward-incompatible](https://contributors.home-assistant.io/releases/guides/backward-incompatible-changes/#when-it-is-backward-incompatible) to decide if a Pull Request must be marked as a breaking change, with the `## Breaking change` section and the Breaking change type. Ask for it when the PR breaks something for users without a deprecation first, or removes something from an integration after its deprecation period, including a YAML import. Do not ask for it when the PR removes a deprecated core API, like a helper or a constant, that nothing in Home Assistant Core uses anymore. - Check that the PR description is complete and filled in according to the PR template in `.github/PULL_REQUEST_TEMPLATE.md`. Every section and checklist item from the template must be present, except the `## Breaking change` section which is optional. No content from the template should be missing, except for HTML comments and Markdown link reference definitions (lines of the form `[name]: url`), which do not render and cannot be verified from the description. Even unchecked checkboxes or empty sections must be present. This is a hard requirement. - Skip the PR template check for pull requests generated by automated dependency bots. These are identifiable by their description: Renovate PRs contain "This PR was generated by [Mend Renovate]" and Dependabot PRs contain "Dependabot commands and options". All other review instructions still apply to these PRs.