Repository navigation
Conversation
A PR that changes nothing but one integration's quality scale must be titled "Set quality scale to <tier> in <name>", "Add quality scale file to <name>" or "Update quality scale rules in <name>". A tier change next to other manifest changes fails: they belong in a separate PR.
A tier change in manifest.json next to quality_scale.yaml changes now fails as well: the rules go in a separate PR.
Changing an existing tier is a manifest.json change on its own. Adding a first tier may also take the integration off script/hassfest/quality_scale.py.
…le row The standalone requirement is about the PR's content, not its title, so it moves from "PR title" to a new member-waivable "Quality scale" check. It now also covers tier changes made with code or tests. "PR title" only expects "Set quality scale to <tier> in <name>" on a standalone tier change.
…covers code owners Code owner changes to an existing integration's manifest must stand alone too, with the generated CODEOWNERS file. Changed manifest keys are now read by following each changed line's top-level key, so code owner lists over several lines are recognised.
The quality_scale.yaml titles and code owner changes move to follow-up PRs, to keep this one small.
Like the style checks in OpenHomeFoundation#181, it belongs to the rule; only the tier detection, shared with the Manifest check, stays a helper.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed change
Follows #181. Quality scale tier changes on core must stand alone and get the expected title.
"Manifest" (new row, member-waivable). When a PR sets the
quality_scaletier in an existing integration'smanifest.json, nothing else may change, exceptscript/hassfest/quality_scale.pyfor a first tier (it lists the integrations without a quality scale). Anything else (rule changes, other manifest settings, code, tests, another integration's manifest) fails with "Change only the quality scale tier in this PR, and move the other changes to a separate PR." PRs without a tier change skip the row, and a new integration's manifest isn't a change. To tell which keys a manifest diff changes, each changed line is placed under its top-level key; a line that can't be placed counts as another change."PR title". A standalone tier change must be titled
Set quality scale to <tier> in <name>, with the tier as in the manifest and<name>the integration's name in its manifest ondev, written exactly (any name when the manifest can't be read). Otherwise the row fails with "Rename this PR to<expected title>." A title in the expected form still goes through the checks from #181.The row is named "Manifest" so follow-ups can add other manifest changes that must stand alone, such as code owners. Titles for
quality_scale.yamlchanges are left for a follow-up too.The tier detection lives in
helpers/manifest-change.ts, shared by both checks; the expected title is inrules/title.ts. This PR doesn't depend on #195, which adds the dependency bump titles to the same rule; whichever merges second needs a small rebase.Of 100 recent quality scale PRs on core, 8 change a tier; 7 of them would fail the "Manifest" row because they also change the rules (5) or code (2).
Type of change
Additional information
Checklist
mise run test). Your PR cannot be merged unless tests pass.mise run check).mise run format).If behaviour, configuration, or environment variables changed:
README.mdand.env.examplehave been updated accordingly.