Skip to content

Commit

Permalink
add setup CI tip (#2325)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre-Herve authored Sep 20, 2023
1 parent 9d9f613 commit bc163ff
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions projects/optic/src/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,10 @@ export const getRunAction =
│ Local specs │
└─────────────────────────────────┘
[1]: Comparing your local specifications to their latest \`${cloudTag}\` version in Optic cloud.
(Optic compares against the target branch tag upon a PR/MR event, and the current branch tag otherwise)
[1]: Comparing your local specifications to their last uploaded Optic cloud version for tag \`${cloudTag}\`.
Optic compares local specs against the target branch upon PR/MR events, and the current branch upon push events or local runs.
[2]: Pushing local specs as latest versions for \`${currentBranchCloudTag}\` in Optic cloud.
(Updating the current branch tag)
[2]: Pushing local specs as latest versions in Optic cloud for tag \`${currentBranchCloudTag}\`, the current branch tag.
--------------------------------------------------------------------------------------------------`);
if (!commentToken && isPR) {
Expand Down Expand Up @@ -606,6 +605,13 @@ export const getRunAction =

await flushEvents();

if (!config.isInCi) {
logger.info('');
logger.info(
`🤖 Don't forget to add Optic to your CI flow: https://www.useoptic.com/docs/setup-ci`
);
}

if (exit1) {
logger.info(
'Exiting with code 1 as errors were found. Disable this behaviour with the `--severity none` option.'
Expand Down

0 comments on commit bc163ff

Please sign in to comment.