Skip to content

ci: refresh upstream Homebridge dependencies daily and on demand for alpha and beta - #1140

Merged
NorthernMan54 merged 1 commit into
latestfrom
ci/refresh-upstream-dependencies
Nov 20, 2026
Merged

NorthernMan54 merged 1 commit into
latestfrom
ci/refresh-upstream-dependencies

Conversation

@NorthernMan54

@NorthernMan54 NorthernMan54 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Refresh Homebridge Upstream Dependencies

Keeps HAP-NodeJS prereleases on the newest upstream Homebridge packages (@homebridge/ciao, bonjour-hap, fast-srp-hap) without anyone bumping them by hand. This is the same setup running in homebridge-config-ui-x since 2026-11-18.

How it works

  1. The workflow runs daily at 05:17 UTC for all streams. A maintainer can also start it by hand and pick alpha, beta, or all.
  2. For each stream, homebridge/dependency-bot finds the highest <stream>-x.y.z branch, checks it out, and reads that branch's .github/homebridge-dependency-bot-<stream>.json. It pins each package to the newest version the config allows and updates package-lock.json.
  3. The bot opens a PR on that branch as the Homebridge App, with auto-merge on. It keeps one PR per branch and updates it on later runs.
  4. The branch's protection rule holds the PR until the required checks pass. beta* and alpha* need a PR with 0 approvals.
  5. When the checks pass the PR merges, and the push publishes the next prerelease to npm.

This PR adds the workflow and both bot configs (-alpha.json takes ciao alpha releases too). GitHub runs dispatch and scheduled workflows from the default branch, and new alpha-* / beta-* branches are cut from latest, so each new branch starts with its config. beta-2.3.1 was cut before this, so it gets its config in #1139. With no alpha-* branch yet, the alpha leg finds no branch and skips.

Before the first run

Merging this into latest publishes nothing.

🤖 Generated with Claude Code

@coveralls

coveralls commented Nov 20, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 44778062092

Coverage remained the same at 78.286%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 8620
Covered Lines: 6719
Line Coverage: 77.95%
Relevant Branches: 1286
Covered Branches: 1036
Branch Coverage: 80.56%
Branches in Coverage %: Yes
Coverage Strength: 481.41 hits per line

💛 - Coveralls

@NorthernMan54
NorthernMan54 marked this pull request as ready for review November 20, 2026 16:51
@NorthernMan54
NorthernMan54 requested a review from bwp91 November 20, 2026 16:51
@NorthernMan54
NorthernMan54 enabled auto-merge (rebase) November 20, 2026 16:53
…alpha and beta

Adds Refresh Homebridge Upstream Dependencies, as in homebridge-config-ui-x:
homebridge/dependency-bot opens a PR on the highest alpha-* / beta-* branch that
auto-merges when the required checks pass. Runs daily at 05:17 UTC and on demand.

Adds the alpha and beta bot configs here too, so each new alpha-* / beta-* branch
cut from latest starts with its config. Alpha also takes ciao alpha releases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NorthernMan54
NorthernMan54 merged commit 74b1700 into latest Nov 20, 2026
16 checks passed
@NorthernMan54
NorthernMan54 deleted the ci/refresh-upstream-dependencies branch November 20, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants