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:
parent
fedb1f3b00
commit
14b0ef529c
1 changed files with 1 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue