Skip to content
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

Allow running a build from a repo with only one commit when not in CI #812

Conversation

tmeasday
Copy link
Member

@tmeasday tmeasday commented Sep 6, 2023

We have this check because in CI it is likely a single commit repo means a misconfigured CI job.

In the addon, this is much less likely, so we may as well allow you to run such builds as part of experimenting with a new storybook. I didn't add it as a CLI flag as it seems like asking for trouble.

I'm not sure if there's a good way to write tests for this. The original PR that added the check didn't have tests for #207 -- do you have any ideas @ghengeveld ?

@linear
Copy link

linear bot commented Sep 6, 2023

Copy link
Member

@ghengeveld ghengeveld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we need a new flag at all, but OK if you want to go for it.

node-src/git/getCommitAndBranch.ts Outdated Show resolved Hide resolved
@tmeasday tmeasday force-pushed the tom/ap-3635-ignore-single-commit-restriction-in-addon-initiated-builds branch from 7d6d948 to 3cbe8fa Compare September 6, 2023 10:20
@tmeasday tmeasday merged commit 9bb3918 into main Sep 6, 2023
20 checks passed
@tmeasday tmeasday deleted the tom/ap-3635-ignore-single-commit-restriction-in-addon-initiated-builds branch September 6, 2023 12:59
@ghengeveld ghengeveld changed the title Allow running a build on a single commit repo w/ option Allow running a build from a repo with only one commit when not in CI Sep 7, 2023
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.

None yet

2 participants