Skip to content

fix(http): times out on large repositories #562

fix(http): times out on large repositories

fix(http): times out on large repositories #562

Triggered via push November 15, 2023 20:37
Status Success
Total duration 57s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

lint-soft.yml

on: push
lint-soft
49s
lint-soft
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint-soft: pkg/webhook/push.go#L89
pkg/webhook/push.go:89: Line contains TODO/BUG/FIXME: "TODO: implement a commits api" (godox)
lint-soft: pkg/webhook/repository.go#L37
missing cases in switch of type webhook.RepositoryEventAction: webhook.RepositoryEventActionDelete, webhook.RepositoryEventActionRename, webhook.RepositoryEventActionDefaultBranchChange (exhaustive)
lint-soft: pkg/webhook/push.go#L90
mnd: Magic number: 20, in <assign> detected (gomnd)
lint-soft: pkg/webhook/branch_tag.go#L75
error returned from external package is unwrapped: sig: func github.com/charmbracelet/soft-serve/pkg/db.WrapError(err error) error (wrapcheck)
lint-soft: pkg/webhook/branch_tag.go#L82
error returned from external package is unwrapped: sig: func github.com/charmbracelet/soft-serve/pkg/proto.RepositoryDefaultBranch(repo github.com/charmbracelet/soft-serve/pkg/proto.Repository) (string, error) (wrapcheck)
lint-soft: pkg/webhook/collaborator.go#L63
error returned from external package is unwrapped: sig: func github.com/charmbracelet/soft-serve/pkg/db.WrapError(err error) error (wrapcheck)
lint-soft: pkg/webhook/collaborator.go#L70
error returned from external package is unwrapped: sig: func github.com/charmbracelet/soft-serve/pkg/proto.RepositoryDefaultBranch(repo github.com/charmbracelet/soft-serve/pkg/proto.Repository) (string, error) (wrapcheck)
lint-soft: pkg/webhook/collaborator.go#L75
error returned from interface method should be wrapped: sig: func (github.com/charmbracelet/soft-serve/pkg/store.CollaboratorStore).GetCollabByUsernameAndRepo(ctx context.Context, h github.com/charmbracelet/soft-serve/pkg/db.Handler, username string, repo string) (github.com/charmbracelet/soft-serve/pkg/db/models.Collab, error) (wrapcheck)
lint-soft: pkg/webhook/push.go#L65
error returned from external package is unwrapped: sig: func github.com/charmbracelet/soft-serve/pkg/db.WrapError(err error) error (wrapcheck)
lint-soft: pkg/webhook/push.go#L74
error returned from interface method should be wrapped: sig: func (github.com/charmbracelet/soft-serve/pkg/proto.Repository).Open() (*github.com/charmbracelet/soft-serve/git.Repository, error) (wrapcheck)
lint-soft
Restore cache failed: Dependencies file is not found in /home/runner/work/soft-serve/soft-serve. Supported file pattern: go.sum