fix(agent/agentic): AX-6 sweep on scan.go — net/url → core.URLEncode

url.QueryEscape → core.URLEncode in listRepoIssues label encoding.
net/url import removed.

Co-authored-by: Codex <noreply@openai.com>
Closes tasks.lthn.sh/view.php?id=963
This commit is contained in:
Snider 2026-04-25 13:30:18 +01:00
parent fedb1f3b00
commit 14b0ef529c

View file

@ -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 {