cli/pkg/cmdutil
William Martin 268453803e fix(api): propagate InvokingAgent in gh api HTTP client
The gh api command builds its own HTTP client inline without
forwarding InvokingAgent, so the User-Agent header was missing
the Agent/<name> suffix when invoked by AI coding agents.

Thread InvokingAgent through Factory → ApiOptions → HTTPClientOptions,
mirroring the existing AppVersion pattern.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-26 16:55:16 +01:00
..
args.go Separate partitioning from globbing in cmdutil/args package and consumers (#3) 2025-03-04 07:05:23 +05:00
args_test.go Use t.Chdir in tests 2025-06-17 11:44:14 +02:00
auth_check.go Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
auth_check_test.go Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
cmdgroup.go Split issue commands into "General" vs. "Targeted" 2022-12-20 17:56:51 +01:00
errors.go chore: fix some function names in comment 2025-01-12 15:07:04 +08:00
factory.go fix(api): propagate InvokingAgent in gh api HTTP client 2026-03-26 16:55:16 +01:00
factory_test.go Fix determining executable location in PATH (#8238) 2023-11-14 08:26:19 +00:00
file_input.go Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
flags.go Autocomplete branch flags (#6031) 2023-03-29 16:09:44 +00:00
json_flags.go refactor without VisitAll 2025-08-31 18:09:46 +02:00
json_flags_test.go introduce AddJSONFlagsWithoutShorthand 2025-08-31 17:56:52 +02:00
legacy.go Fix repo fork to use remote protocol if none configured 2024-05-10 10:48:36 +02:00
repo_override.go Cleanup config.AuthToken and config.DefaultHost methods (#7049) 2023-02-28 00:24:45 +00:00