cli/pkg/cmd/codespace
William Martin d4cd79e28c Use int64 for GitHub database IDs and add lint check
Change all struct fields representing GitHub database IDs from int to
int64 to match the API spec and prevent potential overflow on 32-bit
architectures.

Add a custom go/analysis linter (idtype-checker) that flags struct
fields with ID-like names or JSON tags using int instead of int64,
integrated into make lint.

Closes #9247

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-13 13:16:43 +02:00
..
code.go Always open new vscode window in gh cs code (#7092) 2023-03-06 22:50:43 +00:00
code_test.go Always open new vscode window in gh cs code (#7092) 2023-03-06 22:50:43 +00:00
codespace_selector.go Add capability to filter codespaces by repo owner (#7347) 2023-04-27 10:42:08 -05:00
codespace_selector_test.go Add capability to filter codespaces by repo owner (#7347) 2023-04-27 10:42:08 -05:00
common.go Use int64 for GitHub database IDs and add lint check 2026-05-13 13:16:43 +02:00
common_test.go fix: list branches in square brackets in gh codespace 2024-12-10 15:19:30 -05:00
create.go Use int64 for GitHub database IDs and add lint check 2026-05-13 13:16:43 +02:00
create_test.go Use int64 for GitHub database IDs and add lint check 2026-05-13 13:16:43 +02:00
delete.go Move create codespace permission opt out behind else to fix token permissions 2024-01-12 12:16:38 -08:00
delete_test.go refactor: use slices.Equal to simplify code (#11364) 2025-08-26 15:29:19 -06:00
edit.go Inconsistent format of description of flags (starting with lowercase letter) (#10507) 2025-02-27 11:40:21 +01:00
edit_test.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
jupyter.go Resolve race condition in codespaces connection 2023-10-31 12:19:14 -07:00
list.go Remove out of scope changes, update list commands 2025-03-31 11:58:30 -04:00
list_test.go Remove uses of FuzzyAgoAbbr in tables (#8222) 2023-10-22 17:33:49 +02:00
logs.go Resolve race condition in codespaces connection 2023-10-31 12:19:14 -07:00
logs_test.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
mock_api.go Use int64 for GitHub database IDs and add lint check 2026-05-13 13:16:43 +02:00
mock_prompter.go Go 1.19: fix comment formatting for moq-generated mocks 2022-12-12 16:58:25 +01:00
ports.go fix: resolve copyloopvar issues 2025-11-03 20:05:26 +00:00
ports_test.go Forward codespace ports over Dev Tunnels 2023-09-27 13:42:40 -07:00
rebuild.go Inconsistent format of description of flags (starting with lowercase letter) (#10507) 2025-02-27 11:40:21 +01:00
rebuild_test.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
root.go Disable telemetry for GHES 2026-04-17 11:50:24 +02:00
select.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
select_test.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
ssh.go fix: resolve copyloopvar issues 2025-11-03 20:05:26 +00:00
ssh_test.go chore: fix some comments 2025-01-23 00:47:27 +08:00
stop.go Fix typo in cs stop command: Stoppping -> Stopping (#7318) 2023-04-14 14:08:42 -05:00
stop_test.go Add --repo filter to more gh codespaces commands (#6669) 2023-02-22 17:16:36 -06:00
view.go Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
view_test.go Codespaces view command updates 2023-06-07 11:04:17 -07:00