-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove undefined origin values in branch names.
- Loading branch information
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
node-src/ui/messages/warnings/undefinedBranchOwner.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default { | ||
title: 'CLI/Messages/Warnings', | ||
}; | ||
|
||
export { default as UndefinedBranchOwner } from './undefinedBranchOwner'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import chalk from 'chalk'; | ||
import { dedent } from 'ts-dedent'; | ||
|
||
import { info, warning } from '../../components/icons'; | ||
import link from '../../components/link'; | ||
|
||
const docsUrl = | ||
'https://www.chromatic.com/docs/custom-ci-provider/#overriding-chromatics-branch-detection'; | ||
|
||
export default () => { | ||
return dedent(chalk` | ||
${warning} Removing unknown owner prefix from branch name. | ||
You may wish to set the branch directly to avoid incorrect values. | ||
${info} Read more at ${link(docsUrl)} | ||
`); | ||
}; |