with semantic

This commit is contained in:
Kasper Juul Hermansen 2022-09-18 21:44:29 +02:00
parent b12d7f8a00
commit f96ec96786
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
4 changed files with 17 additions and 3 deletions

View File

@ -0,0 +1,9 @@
apiVersion: git.front.kjuulh.io/kjuulh/kraken/blob/main/schema/v1
name: write-a-readme
select:
providers:
- gitea: https://git.front.kjuulh.io
organisation: "cibus"
queries:
- type: grep
query: "releaser"

View File

@ -12,7 +12,7 @@ func New() (*zap.Logger, error) {
return lvl >= zapcore.ErrorLevel
})
lowPriority := zap.LevelEnablerFunc(func(lvl zapcore.Level) bool {
return lvl < zapcore.ErrorLevel
return lvl < zapcore.ErrorLevel && lvl > zapcore.DebugLevel
})
config := zap.NewDevelopmentEncoderConfig()
@ -28,5 +28,6 @@ func New() (*zap.Logger, error) {
)
logger := zap.New(core)
return logger, nil
}

View File

@ -40,6 +40,7 @@
- [ ] Setup CI
- [ ] Setup static analysis
- [ ] Setup releases on gitea using drone
- [ ] Figure out a license (probably MIT)
## Version 0.3

View File

@ -4,5 +4,8 @@ set -e
current_branch=$(git branch --show-current)
go run cmd/kraken/kraken.go process --actions-repo "git@git.front.kjuulh.io:kjuulh/kraken.git" --branch "$current_branch" --path "_examples/actions/write_a_readme"
go run cmd/kraken/kraken.go process --actions-repo "git@git.front.kjuulh.io:kjuulh/kraken.git" --branch "$current_branch" --path "_examples/queries/scrape_readme"
#go run cmd/kraken/kraken.go process --actions-repo "git@git.front.kjuulh.io:kjuulh/kraken.git" --branch "$current_branch" --path "_examples/actions/write_a_readme"
go run cmd/kraken/kraken.go process \
--actions-repo "git@git.front.kjuulh.io:kjuulh/kraken.git"\
--branch "$current_branch" \
--path "_examples/queries/find_semantic"