Skip to content

Commit

Permalink
chore: increase unified diff lines and add dependencies for codegpt task
Browse files Browse the repository at this point in the history
- 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 <[email protected]>
  • Loading branch information
ysicing committed Mar 20, 2024
1 parent 4a4d729 commit 06ec6f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -97,4 +97,3 @@ tasks:
cmds:
- task: initgithooks
- task: fmt
- task: codegpt
2 changes: 1 addition & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion gencopyright.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ./**

0 comments on commit 06ec6f1

Please sign in to comment.