Skip to content

Commit 8ff65a1

Browse files
authored
Refer to git-hooks setup as config instead of link (#13)
as that is what we actually do
1 parent 6d08b61 commit 8ff65a1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/components/Generator/Generator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export type GeneratorSettings = {
1616
runtime: 'local' | 'docker-compose';
1717
developmentProxy: boolean;
1818
checkoutGitRequest: 'none' | 'github' | 'gitlab';
19-
linkGitHooks: boolean;
19+
configureGitHooks: boolean;
2020
};
2121

2222
const Generator = (): ReactElement => {

src/components/Generator/GeneredTaskfile/addons/git/git.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { GeneratorSettings } from '@/components/Generator';
22
import { TaskfileAddons } from '@/components/Generator/GeneredTaskfile/taskfile';
33
import loadTemplate from '@/helpers/loadTemplate';
4-
import gitLinkHooks from './git-link-hooks.sh';
4+
import gitLinkHooks from './configure-git-hooks.sh';
55
import githubFunction from './github-pr-function.sh';
66
import gitlabFunction from './gitlab-mr-function.sh';
77

88
const git = (settings: GeneratorSettings, addon: TaskfileAddons): void => {
9-
if (settings.linkGitHooks) {
9+
if (settings.configureGitHooks) {
1010
addon.projectFunctions.push(loadTemplate(gitLinkHooks));
1111

1212
addon.initCheckCommands.push('project:git-config');

src/components/Generator/Settings/Settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const Settings = (): ReactElement => {
7979
},
8080
]}
8181
/>
82-
<Checkbox name="linkGitHooks">Create git hooks symlink</Checkbox>
82+
<Checkbox name="configureGitHooks">Configure git hooks</Checkbox>
8383
</div>
8484
);
8585
};

0 commit comments

Comments
 (0)