You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[deep-report] Give GitHubReposScope a real type instead of bare any #55770
pkg/workflow/tools_types.go:306 defines type GitHubReposScope any // string or []any (YAML-parsed arrays are []any), used by the AllowedRepos (:325) and Repos (:327) fields. Because the type is a bare any, every caller has to type-switch between string and []any to use the value safely.
Expected Impact
Removes the repeated type-assertion boilerplate at every call site permanently, and makes the two valid YAML shapes (single repo string, or list of repos) explicit in the type system instead of implicit tribal knowledge in a comment.
Suggested Fix
Give it a real type with a custom UnmarshalYAML that normalizes both YAML shapes into []string internally:
Then update call sites that currently type-switch on the raw any.
Suggested Agent
General-purpose coding agent
Estimated Effort
Medium (2-3 hours)
Data Source
DeepReport analysis of Typist discussion #55753 (2026-08-25). Verified live at pkg/workflow/tools_types.go:306,325,327; no existing open issue found (search for "GitHubReposScope" returned 0 open matches).
Generated by 🔬 Deep Report · claude · agent · 213.6 AIC · ⌖ 8.79 AIC · ⊞ 12.4K · ◷
Activity
github-actions commentedon Aug 25, 2026
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪