From 14b0ef529c20a9d7aea362b2e0dbcac5de19b023 Mon Sep 17 00:00:00 2001 From: Snider Date: Sat, 25 Apr 2026 13:30:18 +0100 Subject: [PATCH] =?UTF-8?q?fix(agent/agentic):=20AX-6=20sweep=20on=20scan.?= =?UTF-8?q?go=20=E2=80=94=20net/url=20=E2=86=92=20core.URLEncode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit url.QueryEscape → core.URLEncode in listRepoIssues label encoding. net/url import removed. Co-authored-by: Codex Closes tasks.lthn.sh/view.php?id=963 --- pkg/agentic/scan.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/agentic/scan.go b/pkg/agentic/scan.go index dd68cdc..36bb2bc 100644 --- a/pkg/agentic/scan.go +++ b/pkg/agentic/scan.go @@ -4,7 +4,6 @@ package agentic import ( "context" - "net/url" core "dappco.re/go/core" "github.com/modelcontextprotocol/go-sdk/mcp" @@ -108,7 +107,7 @@ func (s *PrepSubsystem) listRepoIssues(ctx context.Context, org, repo, label str requestURL := core.Sprintf("%s/api/v1/repos/%s/%s/issues?state=open&limit=10&type=issues", s.forgeURL, org, repo) if label != "" { - requestURL = core.Concat(requestURL, "&labels=", url.QueryEscape(label)) + requestURL = core.Concat(requestURL, "&labels=", core.URLEncode(label)) } httpResult := HTTPGet(ctx, requestURL, s.forgeToken, "token") if !httpResult.OK {