cli/pkg/cmdutil
copilot-swe-agent[bot] dca59d52b6 Fix linting issues: canonicalheader, embeddedstructfieldcheck, iotamixing, makezero, testableexamples, wastedassign, usetesting, tparallel, unconvert, intrange, iface
- canonicalheader: fix cacheTTL header value to canonical form
- embeddedstructfieldcheck: move embedded fields before regular fields in 4 structs
- iotamixing: split const blocks mixing iota with non-iota constants
- makezero: use make([]T, 0, n) instead of make([]T, n) before appending
- testableexamples: add missing Output: comment to ExampleOption_UnwrapOrZero
- wastedassign: remove wasted initial assignments in 4 locations
- usetesting: replace os.MkdirTemp/os.Setenv with t.TempDir/t.Setenv in tests
- tparallel: add t.Parallel() to 8 top-level test functions
- unconvert: remove 16 unnecessary type conversions
- intrange: convert 3 for loops to use integer range syntax
- iface: consolidate identical EditPrompter and Prompt interfaces via type alias

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 11:05:52 +00: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(factory): add PlainHttpClient to factory 2025-10-13 16:42:18 +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 Fix linting issues: canonicalheader, embeddedstructfieldcheck, iotamixing, makezero, testableexamples, wastedassign, usetesting, tparallel, unconvert, intrange, iface 2026-03-24 11:05:52 +00:00
json_flags_test.go Fix linting issues: canonicalheader, embeddedstructfieldcheck, iotamixing, makezero, testableexamples, wastedassign, usetesting, tparallel, unconvert, intrange, iface 2026-03-24 11:05:52 +00: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