Zum Inhalt springen
Kitbay

ha-deprecation-cleanup

Apache-2.0Aktualisiert am 11. Nov. 202692.189GitHub-SterneEnthält Skripte

A maintainer skill in Home Assistant's core repository that finds deprecations whose removal version has been reached on the dev branch and prepares one cleanup branch for each.

Was der Skill vermittelt

A maintainer skill in Home Assistant's core repository that finds deprecations whose removal version has been reached on the dev branch and prepares one cleanup branch for each. A bundled Python script, run with uv in a separate worktree, lists the due deprecations. The agent skips some (the demo integration, or ones with an open pull request already), leaves risky cases such as core APIs still used by custom integrations for a person to decide, removes the deprecated code completely, runs tests and linters, commits and drafts a pull request description from the repository's template. It may only create new cleanup branches and never opens pull requests, comments, force-pushes or deletes remote branches.

Funktionen

  • Find deprecations due for removal on dev
  • Prepare one cleanup branch per deprecation
  • Run tests and linters on each branch
  • Draft a pull request description from the template