From 6f8cb6b3f8d1d19a6cdd13dbd9cd16dc742f678a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20Garc=C3=ADa=20Veytia=20=28Puerco=29?= Date: Tue, 29 Jul 2025 19:20:24 -0600 Subject: [PATCH 1/2] Move golangci lint config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adolfo García Veytia (Puerco) --- sourcetool/.golangci.yaml => .golangci.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename sourcetool/.golangci.yaml => .golangci.yaml (100%) diff --git a/sourcetool/.golangci.yaml b/.golangci.yaml similarity index 100% rename from sourcetool/.golangci.yaml rename to .golangci.yaml From 57e1f7dc6940693bbcaaf533b1c8a9042d92d5fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20Garc=C3=ADa=20Veytia=20=28Puerco=29?= Date: Tue, 29 Jul 2025 19:20:47 -0600 Subject: [PATCH 2/2] Fix linter nits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adolfo García Veytia (Puerco) --- pkg/sourcetool/implementation.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/sourcetool/implementation.go b/pkg/sourcetool/implementation.go index 507a614d..588d3685 100644 --- a/pkg/sourcetool/implementation.go +++ b/pkg/sourcetool/implementation.go @@ -9,6 +9,7 @@ import ( "encoding/json" "errors" "fmt" + "net/http" "strings" "time" @@ -309,7 +310,7 @@ func (impl *defaultToolImplementation) CreateRepositoryFork( ) // GitHub will return 202 for larger repos that are cloned async - if err != nil && resp.StatusCode != 202 { + if err != nil && resp.StatusCode != http.StatusAccepted { return fmt.Errorf("creating repository fork: %w", err) }