-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Honor --branch-name
when using GitHub Action and other cases
#452
Comments
Adding
|
@svallory Setting a branchName via the config file does not make sense, as this would force one single branch name for all builds regardless of the actual current branch name. This is almost guaranteed to be a footgun so this is an option that likely will never be added to the config file. This ticket is about supporting the |
Thank you for the explanation, @ghengeveld! I'm new to chromatic and took a quick look through the documentation but couldn't find out a quick summary of how it works and its relationship to git. I imagined that the branch name would make sure chromatic only runs for that branch. It looks like I'll have to read a lot to build a mental model of it, so I'll get back to it later. Especially because I can use storybook just fine in dev, but chromatic says the storybook build failed without telling me why. All it says is Anyway, thank you for the info! |
@svallory That’s understandable. We have many options that take a branch name value. If you want to disable or enable Chromatic on specific branches, you’re looking for the The Storybook build log usually ends up in the build directory mentioned. If you continue to have problems, please reach out to our support team via the chat bubble in our webapp. |
Currently, the GitHub Action does not take a
branchName
option. Similarly, when using a build script that setsGITHUB_EVENT_NAME=pull_request
or when using Travis, the--branch-name
flag is overruled. The--branch-name
flag should take precedence.The text was updated successfully, but these errors were encountered: