forgejo-mcp/operation/repo
Christoph Görn dd9116fbca
fix: 🚨 clear golangci-lint v2 backlog (closes bead forgejo-mcp-hc9)
- errorlint: fmt.Errorf %v→%w across all handlers (errors now wrap the
  underlying SDK/HTTP error for errors.Is/As); errors.Is for
  context.Canceled in cmd
- staticcheck quickfixes: Fprintf over WriteString(Sprintf), tagged
  switches, omit inferred 'any'; QF1001 resolved by hoisting hex checks
  into isHex predicates (normalizeColor, validateSHA)
- govet: reflect.Ptr → reflect.Pointer in pkg/ptr
- errcheck: explicit '_ =' for fs.Parse (ExitOnError) and deferred
  zap Sync
- repair four test assertions the autofix broke (it dropped the
  're.Code != X' half of combined type-assert checks, inverting the
  test); all errors.As sites use 'var re *resource.ResourceError'

golangci-lint: 0 issues. staticcheck, vet, tests: clean.
2026-06-11 00:03:36 +02:00
..
branch.go fix: 🚨 clear golangci-lint v2 backlog (closes bead forgejo-mcp-hc9) 2026-06-11 00:03:36 +02:00
commit.go fix: 🚨 clear golangci-lint v2 backlog (closes bead forgejo-mcp-hc9) 2026-06-11 00:03:36 +02:00
contents.go fix: 🚨 clear golangci-lint v2 backlog (closes bead forgejo-mcp-hc9) 2026-06-11 00:03:36 +02:00
contents_test.go feat: add list_repo_contents and get_repo_tree MCP tools 2026-05-05 18:49:22 +00:00
file.go fix: 🚨 clear golangci-lint v2 backlog (closes bead forgejo-mcp-hc9) 2026-06-11 00:03:36 +02:00
file_test.go feat: bounded responses for get_pull_request_diff + get_file_content (#131) 2026-05-12 10:41:52 +02:00
repo.go fix: 🚨 clear golangci-lint v2 backlog (closes bead forgejo-mcp-hc9) 2026-06-11 00:03:36 +02:00
resources_commit.go fix: 🐛 map parse errors via MapForgejoError in commit resource 2026-05-28 16:00:11 +02:00
resources_commit_test.go refactor: 🏗️ classify parse errors via sentinel ErrInvalidParams (-32602) 2026-05-28 16:08:59 +02:00
resources_repo.go fix: 🐛 map parse errors via MapForgejoError in repo resource 2026-05-28 16:01:42 +02:00
resources_repo_test.go fix: 🚨 clear golangci-lint v2 backlog (closes bead forgejo-mcp-hc9) 2026-06-11 00:03:36 +02:00
resources_status.go fix: 🐛 request EmbeddedListCap+1 statuses to detect truncation 2026-05-28 16:13:45 +02:00
resources_status_test.go fix: 🐛 request EmbeddedListCap+1 statuses to detect truncation 2026-05-28 16:13:45 +02:00