Skip to content

Commit

Permalink
updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Keloran committed Dec 5, 2022
1 parent e01b88a commit 7b5efc6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ version: 2
updates:
- package-ecosystem: gomod
directory: /
commit-message:
prefix: build
prefix-development: chore
include: scope
schedule:
interval: daily
4 changes: 2 additions & 2 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
fetch-depth: 1
- uses: golangci/golangci-lint-action@v2
with:
version: v1.38
version: v1.48
args: --config ./configs/golangci.yml
- name: test
run: go test -v -race -bench=./... -benchmem -timeout=120s -bench=./... ./...
automerge:
needs: test
runs-on: ubuntu-latest
steps:
- uses: fastify/github-action-merge-dependabot@v2.1.1
- uses: fastify/github-action-merge-dependabot@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
13 changes: 9 additions & 4 deletions logs/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,20 @@ func (b *BugFixes) skipDepth(depth int) {
func (b BugFixes) DoReporting() {
b.skipDepth(skipDepthGeneral)
if b.LocalOnly {
b.skipDepth(skipDepthLocal)

if b.SkipDepthOverride != 0 {
b.skipDepth(b.SkipDepthOverride)
} else {
b.skipDepth(skipDepthLocal)
}
}

if notDeepEnough := strings.Contains(b.File, "logs.go"); notDeepEnough {
b.skipDepth(skipDepthLocal)
skipDepth := skipDepthLocal
for {
if notDeepEnough := strings.Contains(b.File, "logs.go"); notDeepEnough {
b.skipDepth(skipDepth + 1)
} else {
break
}
}

// Log Format
Expand Down

0 comments on commit 7b5efc6

Please sign in to comment.