chromaui / addon-visual-tests

Visual Tests addon for Storybook
MIT License
28 stars 1 forks source link

Support builds from (supposed) forked repository or monorepo setup #299

Closed ghengeveld closed 1 month ago

ghengeveld commented 1 month ago

When the owner name of the local Git repository doesn't match that of the repository linked to the Chromatic project, local builds will have branch names prefixed with the local owner name (to indicate that the build originates from a fork).

When selecting a build in the VTA, this owner name prefix isn't taken into account, causing the VTA to hang while it looks for a build matching the local Git branch. This PR addresses this mismatch by disregarding the potential owner name prefix. This is safe to do because the BuildQuery already filters by owner name, so we needn't check it again.

Fixes #290