cli/pkg/cmd/pr/shared
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
..
commentable.go Add --delete-last option to pr comment and issue comment (#10596) 2025-05-01 14:12:55 +01:00
comments.go Deprecate ColorScheme.Gray for ColorScheme.Muted 2025-04-06 10:18:48 -04:00
completion.go Include org teams for PR reviewers 2025-07-29 18:19:22 -04:00
completion_test.go Refactor tab completion test 2025-07-30 09:25:33 -04:00
display.go Deprecate ColorScheme.Gray for ColorScheme.Muted 2025-04-06 10:18:48 -04:00
display_test.go Fix linting issues: canonicalheader, embeddedstructfieldcheck, iotamixing, makezero, testableexamples, wastedassign, usetesting, tparallel, unconvert, intrange, iface 2026-03-24 11:05:52 +00:00
editable.go Fix linting issues: canonicalheader, embeddedstructfieldcheck, iotamixing, makezero, testableexamples, wastedassign, usetesting, tparallel, unconvert, intrange, iface 2026-03-24 11:05:52 +00:00
editable_http.go fix(api): correct var name capitalization 2025-05-15 09:33:36 -06:00
find_refs_resolution.go chore: fix function name 2025-06-19 12:36:52 +08:00
find_refs_resolution_test.go Fix linting issues: canonicalheader, embeddedstructfieldcheck, iotamixing, makezero, testableexamples, wastedassign, usetesting, tparallel, unconvert, intrange, iface 2026-03-24 11:05:52 +00:00
finder.go Add missing TODO comments for featuredetection if-statements 2026-02-16 14:24:32 -07:00
finder_test.go fix(pr/shared): improve ParseFullReference error message 2026-01-21 23:30:43 +00:00
git_cached_config_client.go Fix linting issues: canonicalheader, embeddedstructfieldcheck, iotamixing, makezero, testableexamples, wastedassign, usetesting, tparallel, unconvert, intrange, iface 2026-03-24 11:05:52 +00:00
lister.go Fix linting issues: canonicalheader, embeddedstructfieldcheck, iotamixing, makezero, testableexamples, wastedassign, usetesting, tparallel, unconvert, intrange, iface 2026-03-24 11:05:52 +00:00
params.go Add TODO requestReviewsByLoginCleanup on GHES ID-based reviewer path 2026-03-05 10:58:23 -07:00
params_test.go Add CCR and reviewer MultiSelectWithSearch 2026-01-27 23:11:51 -07:00
preserve.go Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
preserve_test.go Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
reaction_groups.go Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
state.go gh pr create: CCR and multiselectwithsearch 2026-02-04 14:56:05 -07:00
survey.go Fix linting issues: canonicalheader, embeddedstructfieldcheck, iotamixing, makezero, testableexamples, wastedassign, usetesting, tparallel, unconvert, intrange, iface 2026-03-24 11:05:52 +00:00
survey_test.go gh pr create: CCR and multiselectwithsearch 2026-02-04 14:56:05 -07:00
templates.go Fix linting issues: canonicalheader, embeddedstructfieldcheck, iotamixing, makezero, testableexamples, wastedassign, usetesting, tparallel, unconvert, intrange, iface 2026-03-24 11:05:52 +00:00
templates_test.go Add issue create --editor 2024-07-09 21:01:50 +09:00