From 06ec6f1f4043e9ed680cf1ef8503745129a26ef9 Mon Sep 17 00:00:00 2001 From: ysicing Date: Wed, 20 Mar 2024 15:28:56 +0800 Subject: [PATCH] chore: increase unified diff lines and add dependencies for codegpt task - Change in `Taskfile.yml`: Increase the number of unified diff lines from `5` to `6` for codegpt task - Change in `Taskfile.yml`: Add `fmt` as a dependency for codegpt task - Change in `Taskfile.yml`: Remove `initgithooks` task as a dependency for fmt task - Change in `gencopyright.sh`: Add `docs/**` to the ignore list for addlicense command Signed-off-by: ysicing --- Taskfile.yml | 5 ++--- docs/docs.go | 2 +- gencopyright.sh | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index a2c37e9..a8dabec 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -70,7 +70,7 @@ tasks: run: once cmds: - task: tools - - swag init -d zentao -g zentao.go --generatedTime --packageName main + - swag init -d zentao -g zentao.go --packageName main clean: desc: clean @@ -81,13 +81,13 @@ tasks: desc: generate code commit message deps: - swag + - fmt cmds: - git add . - codegpt commit --diff_unified 5 --exclude_list docs fmt: cmds: - - task: initgithooks - task: gomod - task: gencopyright - task: gofmt @@ -97,4 +97,3 @@ tasks: cmds: - task: initgithooks - task: fmt - - task: codegpt diff --git a/docs/docs.go b/docs/docs.go index 55ad424..9d5eb3c 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1,4 +1,4 @@ -// Package main Code generated by swaggo/swag at 2024-03-20 15:16:50.575068 +0800 CST m=+0.045889459. DO NOT EDIT +// Package main Code generated by swaggo/swag. DO NOT EDIT package main import "github.com/swaggo/swag" diff --git a/gencopyright.sh b/gencopyright.sh index 2c2fe9f..ea0c16a 100755 --- a/gencopyright.sh +++ b/gencopyright.sh @@ -18,4 +18,4 @@ set -xe -addlicense -f .go-header.txt -ignore -ignore "**/*.md" -ignore vendor/** -ignore "**/*.sh" ./** +addlicense -f .go-header.txt -ignore docs/** -ignore "**/*.md" -ignore vendor/** -ignore "**/*.sh" ./**