Skip to content

Support pinning a custom-component branch/ref in CI - #104

Merged
mikopp merged 1 commit into
masterfrom
feature/pin-custom-component-ref
Sep 10, 2026
Merged

Support pinning a custom-component branch/ref in CI#104
mikopp merged 1 commit into
masterfrom
feature/pin-custom-component-ref

Conversation

@mikopp

@mikopp mikopp commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Summary

Adds an optional ref field per dependency in tests/custom_components.yaml, honored by the installer script in ha_check.yaml. Defaults to main when omitted, so there's no behavior change on master — every dependency still installs from main exactly 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-features branch (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 to litinoveweedle/hass-template-climate. Doing that required a throwaway branch that set ref: integration/all-features — this PR keeps only the reusable mechanism, not that one-off usage.

Example

dependencies:
  - name: Template Climate
    domain: climate_template
    repository: https://github.com/mikopp/hass-template-climate
    ref: some-branch-to-validate   # temporary, on a throwaway branch only
    hacs: mikopp/hass-template-climate

🤖 Generated with Claude Code

https://claude.ai/code/session_01EG6nBkBsv5jNAzXpiBewUy


Generated by Claude Code

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
@mikopp
mikopp merged commit 7cc262b into master Sep 10, 2026
3 of 4 checks passed
@mikopp
mikopp deleted the feature/pin-custom-component-ref branch September 10, 2026 08:44
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.

2 participants