From 8fb007bf10b8c1294b71ccd4394e7d99887d7f85 Mon Sep 17 00:00:00 2001 From: Sarah Drasner Date: Sun, 2 Jun 2019 09:49:29 -0600 Subject: [PATCH 1/4] soften warning about not having a git remote --- src/commands/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/init.js b/src/commands/init.js index 16eb6e304d2..021db0bf9b8 100644 --- a/src/commands/init.js +++ b/src/commands/init.js @@ -57,7 +57,7 @@ class InitCommand extends Command { if (repo.error) { console.log() - console.log(`${chalk.redBright('No git remote found. (╯°□°)╯︵ ┻━┻')}`) + console.log(`${chalk.yellow('No git remote was found, would you like to set one up?')}`) console.log(` It is recommended that you initialize a site that has a remote repository in GitHub. From 6a7faf598dc5d386853ebbfd61f0faefcfc973ec Mon Sep 17 00:00:00 2001 From: Sarah Drasner Date: Sun, 2 Jun 2019 09:52:01 -0600 Subject: [PATCH 2/4] make existing repo sound more like a success than a failure --- src/commands/init.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/init.js b/src/commands/init.js index 021db0bf9b8..7240dbc9567 100644 --- a/src/commands/init.js +++ b/src/commands/init.js @@ -174,9 +174,9 @@ git remote add origin https://github.com/YourUserName/RepoName.git const remoteBuildRepo = get(siteData, 'build_settings.repo_url') if (remoteBuildRepo && !flags.force) { this.log() - this.log(chalk.underline.bold(`Existing Repo detected`)) + this.log(chalk.underline.bold(`Success`)) const siteName = get(siteData, 'name') - this.log(`This site "${siteName}" is already configured to automatically deploy via ${remoteBuildRepo}`) + this.log(`This site "${siteName}" is configured to automatically deploy via ${remoteBuildRepo}`) // TODO add support for changing github repo in site:config command if (flags.watch) { From 304eb06d520e75081734159a4b0a3beef157ce19 Mon Sep 17 00:00:00 2001 From: Sarah Drasner Date: Sun, 2 Jun 2019 09:59:38 -0600 Subject: [PATCH 3/4] site has been initialized more friendly --- src/commands/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/init.js b/src/commands/init.js index 7240dbc9567..ae3187e2e1a 100644 --- a/src/commands/init.js +++ b/src/commands/init.js @@ -34,7 +34,7 @@ class InitCommand extends Command { if (siteId && siteData && get(siteData, 'build_settings.repo_url') && !flags.force) { const repoUrl = get(siteData, 'build_settings.repo_url') this.log() - this.log(`${chalk.yellow('Warning:')} It looks like this site has already been initialized.`) + this.log(`This site has been initialized`) this.log() this.log(`Site Name: ${chalk.cyan(siteData.name)}`) this.log(`Site Url: ${chalk.cyan(siteData.ssl_url || siteData.url)}`) From 958b55bfc023247df8380a15b5eb0b370d34718a Mon Sep 17 00:00:00 2001 From: Sarah Drasner Date: Sun, 2 Jun 2019 10:02:07 -0600 Subject: [PATCH 4/4] make success more clear --- src/commands/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/init.js b/src/commands/init.js index ae3187e2e1a..a8e6ac5023c 100644 --- a/src/commands/init.js +++ b/src/commands/init.js @@ -218,7 +218,7 @@ git remote add origin https://github.com/YourUserName/RepoName.git // Success Message this.log() - this.log(chalk.greenBright.bold.underline(`Netlify CI/CD Configured!`)) + this.log(chalk.greenBright.bold.underline(`Success! Netlify CI/CD Configured!`)) this.log() this.log(`This site is now configured to automatically deploy from ${repo.provider} branches & pull requests`) this.log()