-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update various files and configurations
- Add pre-commit hook for running checks on golang files before committing - Update the GO_VERSION environment variable in the lint.yml workflow file from "1.20" to "1.21" - Update the GO_VERSION environment variable in the golangci.yml file from "1.20" to "1.21" - Update the .go-header.txt file with a new copyright year, changing "2023, easysoft" to "2024, zentao" - Update the .golangci.yml file to add a template path for the goheader linter - Add a launch.json file in the .vscode directory - Add an entry for "launch package" in the configurations section of the launch.json file - Update the OWNERS file, removing "zhengyuansheng" from the approvers and reviewers lists - Update the README.md file, changing the supported ZenTao version from "18.3" to "18.11" - Update the default GO_VERSION environment variable in the Taskfile.yml file from "1.20" to "1.21" - Update the docker-compose.yaml file, changing the image tag for the "zentao" service from "18.7" to "18.11" - Remove the okteto.yml file Signed-off-by: ysicing <[email protected]>
- Loading branch information
Showing
11 changed files
with
105 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -e | ||
|
||
command_exists() { | ||
command -v "$@" > /dev/null 2>&1 | ||
} | ||
|
||
echo Running pre-commit hook | ||
|
||
if ! command_exists task | ||
then | ||
echo "task could not be found - install task before running pre-commit: https://taskfile.dev/installation/" | ||
exit 1 | ||
fi | ||
|
||
# Run pre-commit, this checks if we changed any golang files and runs the checks. | ||
# The files are then git-added | ||
FILES=$(git diff --cached --name-only --diff-filter=ACMR | grep .go | sed 's| |\\ |g') | ||
if [ -n "$FILES" ]; then | ||
if ! task fmt; then | ||
echo "Error running make check - please fix before committing" | ||
echo "if this is a mistake you can skip the checks with 'git commit --no-verify'" | ||
exit 1 | ||
fi | ||
echo "$FILES" | xargs git add | ||
fi | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
// 使用 IntelliSense 了解相关属性。 | ||
// 悬停以查看现有属性的描述。 | ||
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch Package", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"program": "${fileDirname}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
approvers: | ||
- ysicing | ||
- zhengyuansheng | ||
reviewers: | ||
- ysicing | ||
- zhengyuansheng |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.