How to test a fork?

I pushed a PR to Ecobee Suite Manager, but want to install my fork to ensure that I didn't mess anything up. This doesn't seem straightforward (other than copy/pasting files, which is easy enough). Does anyone have instructions on how to switch a package from it's "official" repo to a fork? Unmatch -> Match just rematches to the official repo, even if I've added my fork to sources.

TIA

I think I figured out a way, maybe not the way.

  1. create a repo to host a repositories.json - e.g. hubitat-repositories/repositories.json at main · bdruth/hubitat-repositories · GitHub
  2. point the packages entry to your fork's packageManifest.json location
  3. [In HBM] unmatch the package
  4. [In HBM Settings] add the repositories.json raw URL as a custom repository
    a. you may want to un-check the original source repo as well, so you only get one hit when matching
  5. [In HBM] run match and select your fork
  6. [In HBM] update packages

This seems to have done the trick for me. Happy to hear if there was a simpler way :slight_smile:

1 Like