File tree Expand file tree Collapse file tree 3 files changed +38
-11
lines changed Expand file tree Collapse file tree 3 files changed +38
-11
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,9 @@ test "" = "$(grep '^Signed-off-by: ' "$1" |
3636.githooks/gitlint \
3737 --msg-file=$1 \
3838 --subject-regex=" ^(build|chore|ci|docs|feat|feature|fix|perf|refactor|revert|style|test)(.*)?:\s?.*" \
39- --subject-maxlen=100 \
39+ --subject-maxlen=150 \
4040 --subject-minlen=10 \
4141 --body-regex=" .*" \
42- --body-maxlen=200 \
4342 --max-parents=1
4443
4544if [ $? -ne 0 ]
Original file line number Diff line number Diff line change 3434 printMessage " Skipping Rust installation."
3535fi
3636
37+ abvc
38+
3739# Install sqllite
3840printMessage " Installing sqlLite3."
3941brew install sqlite3
Original file line number Diff line number Diff line change @@ -121,15 +121,6 @@ rbenv global 2.7.1
121121curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash
122122"""
123123
124- [tasks .install_fish ]
125- script = """
126- brew install fish
127-
128- # https://stackoverflow.com/questions/26208231/modifying-path-with-fish-shell
129- # Export the PATH using the command:
130- # set -Ua fish_user_paths the_path_you_want_to_export
131- """
132-
133124[tasks .install_flutter ]
134125script = """
135126ret = which flutter
141132"""
142133script_runner = " @duckscript"
143134
135+
136+ [tasks .enable_git_hook ]
137+ dependencies =[" download_gitlint" ]
138+ script = """
139+ git config core.hooksPath .githooks
140+ """
141+ script_runner = " @duckscript"
142+
143+ [tasks .download_gitlint ]
144+ script = """
145+ GOLINT_FILENAME="go-gitlint_1.1.0_osx_x86_64.tar.gz"
146+ curl -L https://github.com/llorllale/go-gitlint/releases/download/1.1.0/${GOLINT_FILENAME} --output ${GOLINT_FILENAME}
147+ tar -zxv --directory ../.githooks/. -f ${GOLINT_FILENAME} gitlint
148+ rm ${GOLINT_FILENAME}
149+ """
150+
151+ [tasks .download_gitlint .linux ]
152+ script = """
153+ GOLINT_FILENAME="go-gitlint_1.1.0_linux_x86_64.tar.gz"
154+ wget https://github.com/llorllale/go-gitlint/releases/download/1.1.0/${GOLINT_FILENAME}
155+ tar -zxv --directory ../.githooks/. -f ${GOLINT_FILENAME} gitlint
156+ rm ${GOLINT_FILENAME}
157+ """
158+
159+
160+ [tasks .download_gitlint .windows ]
161+ script = """
162+ GOLINT_FILENAME="go-gitlint_1.1.0_windows_x86_64.tar.gz"
163+ if curl --proto '=https' --tlsv1.2 -sSfL https://github.com/llorllale/go-gitlint/releases/download/1.1.0/${GOLINT_FILENAME} -o ${GOLINT_FILENAME}; then
164+ tar -zxv --directory ../.githooks/. -f ${GOLINT_FILENAME} gitlint.exe
165+ rm ${GOLINT_FILENAME}
166+ else
167+ echo "Failed to install go-gitlint"
168+ fi
169+ """
You can’t perform that action at this time.
0 commit comments