Skip to content

Commit

Permalink
chore: add link to feedback survey (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
km1chno authored Nov 28, 2024
1 parent 98fe22d commit 8f669af
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/commands/setup-ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import sequentialPromiseMap from '../utils/sequentialPromiseMap'
import { CycliError, CycliRecipe, CycliToolbox, ProjectContext } from '../types'
import intersection from 'lodash/intersection'
import {
COLORS,
CYCLI_COMMAND,
HELP_FLAG,
PRESET_FLAG,
Expand All @@ -21,6 +22,8 @@ import {
} from '../constants'
import { isCycliError, messageFromError } from '../utils/errors'

const FEEDBACK_SURVEY_URL = 'https://forms.gle/NYoPyPxnVzGheHcw6'

const SKIP_GIT_CHECK_FLAG = 'skip-git-check'

type Option = { flag: string; description: string }
Expand Down Expand Up @@ -141,6 +144,19 @@ const runReactNativeCiCli = async (
`Next time you can specify a preset to reproduce this run using npx ${CYCLI_COMMAND} --${PRESET_FLAG} ${usedFlags}.`
)
}

toolbox.interactive.vspace()

toolbox.interactive.info(
[
`Thank you for using ${COLORS.cyan('setup-ci')} 💙`,
"We'd love to hear your feedback to make it even better.",
'Please take a moment to fill out our survey:\n',
`\t → ${FEEDBACK_SURVEY_URL}\n`,
'Your input is greatly appreciated! 🙏',
].join('\n'),
'green'
)
}

const checkGit = async (toolbox: CycliToolbox) => {
Expand Down

0 comments on commit 8f669af

Please sign in to comment.