diff --git a/src/components/Generator/Generator.tsx b/src/components/Generator/Generator.tsx index 5abcca6..096c151 100644 --- a/src/components/Generator/Generator.tsx +++ b/src/components/Generator/Generator.tsx @@ -16,7 +16,7 @@ export type GeneratorSettings = { runtime: 'local' | 'docker-compose'; developmentProxy: boolean; checkoutGitRequest: 'none' | 'github' | 'gitlab'; - linkGitHooks: boolean; + configureGitHooks: boolean; }; const Generator = (): ReactElement => { diff --git a/src/components/Generator/GeneredTaskfile/addons/git/git-link-hooks.sh b/src/components/Generator/GeneredTaskfile/addons/git/configure-git-hooks.sh similarity index 100% rename from src/components/Generator/GeneredTaskfile/addons/git/git-link-hooks.sh rename to src/components/Generator/GeneredTaskfile/addons/git/configure-git-hooks.sh diff --git a/src/components/Generator/GeneredTaskfile/addons/git/git.ts b/src/components/Generator/GeneredTaskfile/addons/git/git.ts index 32f9b5b..0f86344 100644 --- a/src/components/Generator/GeneredTaskfile/addons/git/git.ts +++ b/src/components/Generator/GeneredTaskfile/addons/git/git.ts @@ -1,12 +1,12 @@ import { GeneratorSettings } from '@/components/Generator'; import { TaskfileAddons } from '@/components/Generator/GeneredTaskfile/taskfile'; import loadTemplate from '@/helpers/loadTemplate'; -import gitLinkHooks from './git-link-hooks.sh'; +import gitLinkHooks from './configure-git-hooks.sh'; import githubFunction from './github-pr-function.sh'; import gitlabFunction from './gitlab-mr-function.sh'; const git = (settings: GeneratorSettings, addon: TaskfileAddons): void => { - if (settings.linkGitHooks) { + if (settings.configureGitHooks) { addon.projectFunctions.push(loadTemplate(gitLinkHooks)); addon.initCheckCommands.push('project:git-config'); diff --git a/src/components/Generator/Settings/Settings.tsx b/src/components/Generator/Settings/Settings.tsx index fc17c92..7c90358 100644 --- a/src/components/Generator/Settings/Settings.tsx +++ b/src/components/Generator/Settings/Settings.tsx @@ -79,7 +79,7 @@ const Settings = (): ReactElement => { }, ]} /> - Create git hooks symlink + Configure git hooks ); };