feat: Refine the Atlantis VCS Pull Request Comments (#4254)

This commit is contained in:
Simon Heather
2024-03-23 15:58:30 +00:00
committed by GitHub
parent 4750dc2dc8
commit 566b15f356
113 changed files with 2428 additions and 960 deletions

View File

@@ -19,7 +19,6 @@ package logging
import (
"bytes"
"fmt"
"testing"
"github.com/pkg/errors"
"go.uber.org/zap"
@@ -184,7 +183,7 @@ func (l *StructuredLogger) saveToHistory(lvl LogLevel, format string, a ...inter
// NewNoopLogger creates a logger instance that discards all logs and never
// writes them. Used for testing.
func NewNoopLogger(t *testing.T) SimpleLogging {
func NewNoopLogger(t zaptest.TestingT) SimpleLogging {
level := zap.DebugLevel
return &StructuredLogger{
z: zaptest.NewLogger(t, zaptest.Level(level)).Sugar(),