Skip to content

Commit

Permalink
Merge branch 'tom/ap-3462-mark-addon-initiated-builds-as-local' into …
Browse files Browse the repository at this point in the history
…tom/ap-3463-pass-current-git-users-email-on-localuncommitted-builds
  • Loading branch information
tmeasday committed Aug 21, 2023
2 parents d549972 + f94fc3b commit 8155dfd
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion node-src/lib/getOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function getOptions({ argv, env, flags, log, packageJson }: Conte
autoAcceptChanges: trueIfSet(flags.autoAcceptChanges),
exitZeroOnChanges: trueIfSet(flags.exitZeroOnChanges),
exitOnceUploaded: trueIfSet(flags.exitOnceUploaded),
isLocalBuild: !!flags.local,
isLocalBuild: false,
ignoreLastBuildOnBranch: flags.ignoreLastBuildOnBranch,
// deprecated
preserveMissingSpecs: flags.preserveMissing || !!flags.only,
Expand Down
2 changes: 0 additions & 2 deletions node-src/lib/parseArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export default function parseArgs(argv: string[]) {
--exit-zero-on-changes [branch] If all snapshots render but there are visual changes, exit with code 0 rather than the usual exit code 1. Only for [branch], if specified. Globs are supported via picomatch.
--externals <filepath> Disable TurboSnap when any of these files have changed since the baseline build. Globs are supported via picomatch. This flag can be specified multiple times. Requires --only-changed.
--ignore-last-build-on-branch <branch> Do not use the last build on this branch as a baseline if it is no longer in history (i.e. branch was rebased). Globs are supported via picomatch.
--local Create a "local" build, that will not affect other user's baselines.
--only-changed [branch] Enables TurboSnap: Only run stories affected by files changed since the baseline build. Only for [branch], if specified. Globs are supported via picomatch. All other snapshots will be inherited from the prior commit.
--only-story-files <filepath> Only run a single story or a subset of stories by their filename(s). Specify the full path to the story file relative to the root of your Storybook project. Globs are supported via picomatch. This flag can be specified multiple times.
--only-story-names <storypath> Only run a single story or a subset of stories. Story paths typically look like "Path/To/Story". Globs are supported via picomatch. This flag can be specified multiple times.
Expand Down Expand Up @@ -75,7 +74,6 @@ export default function parseArgs(argv: string[]) {
exitOnceUploaded: { type: 'string' },
exitZeroOnChanges: { type: 'string' },
externals: { type: 'string', isMultiple: true },
local: { type: 'boolean' },
ignoreLastBuildOnBranch: { type: 'string' },
onlyChanged: { type: 'string' },
onlyStoryFiles: { type: 'string', isMultiple: true },
Expand Down
1 change: 0 additions & 1 deletion node-src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export interface Flags {
exitZeroOnChanges?: string;
externals?: string[];
ignoreLastBuildOnBranch?: string;
local?: string;
onlyChanged?: string;
onlyStoryFiles?: string[];
onlyStoryNames?: string[];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chromatic",
"version": "6.23.0-canary.0",
"version": "6.22.0",
"description": "Automate visual testing across browsers. Gather UI feedback. Versioned documentation.",
"keywords": [
"storybook-addon",
Expand Down

0 comments on commit 8155dfd

Please sign in to comment.