Support pinning a custom-component branch/ref in CI - #104
Merged
Conversation
Add an optional 'ref' field per dependency in tests/custom_components.yaml (defaults to 'main' when omitted, so existing behavior is unchanged) and teach the installer script in ha_check.yaml to use it when building the download URL. Lets CI validate this config against an unmerged hass-template-climate branch or PR before it merges upstream, instead of only ever testing against main. Used this to validate hass-template-climate's integration/all-features branch (a staging branch combining several upstream-PR candidates plus two bugs found along the way) end-to-end against the real airflow automation before splitting those into separate upstream PRs. No functional change on master: nothing here sets 'ref', so every dependency still installs from main exactly as before. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EG6nBkBsv5jNAzXpiBewUy
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.
Summary
Adds an optional
reffield per dependency intests/custom_components.yaml, honored by the installer script inha_check.yaml. Defaults tomainwhen omitted, so there's no behavior change onmaster— every dependency still installs frommainexactly as before.Why
Lets CI validate this config against an unmerged branch or PR of a custom component before it merges upstream, instead of only ever testing against
main.Came out of validating hass-template-climate's
integration/all-featuresbranch (a staging branch combining several upstream-PR candidates, plus two bugs found along the way) against the real airflow automation here, before splitting that work into separate PRs tolitinoveweedle/hass-template-climate. Doing that required a throwaway branch that setref: integration/all-features— this PR keeps only the reusable mechanism, not that one-off usage.Example
🤖 Generated with Claude Code
https://claude.ai/code/session_01EG6nBkBsv5jNAzXpiBewUy
Generated by Claude Code