Skip to content

Commit 4974e5f

Browse files
committed
Update copilot-instructions.md for Go port phase 6
1 parent 69df57c commit 4974e5f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/copilot-instructions.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ This is a C# based repository that produces several CLIs that are used by custom
2626
- `cmd/gei/`, `cmd/ado2gh/`, `cmd/bbs2gh/`: Go CLI entry points
2727
- `pkg/scriptgen/`: PowerShell script generation (ported from C#)
2828
- `pkg/github/`: GitHub API client (REST + GraphQL)
29+
- `pkg/ado/`: Azure DevOps API client
2930
- `pkg/storage/`: Cloud storage clients (Azure Blob, AWS S3, GitHub-owned multipart)
3031
- `pkg/archive/`: Archive upload orchestration
3132
- `pkg/logger/`, `pkg/env/`: Shared Go packages
@@ -42,24 +43,24 @@ This is a C# based repository that produces several CLIs that are used by custom
4243

4344
## Go Port Sync Requirements
4445

45-
**Current state:** The `gei` CLI is fully ported to Go, including `migrate-repo`, `migrate-org`, and all alert migration commands. The GitHub API client, shared commands, and cloud storage clients are also ported.
46+
**Current state:** `gei` and `ado2gh` are fully ported to Go. This includes the ADO API client, all ado2gh commands (migrate-repo, generate-script, inventory-report, etc.), and all gei commands. The GitHub API client, shared commands, and cloud storage clients are also ported.
4647

4748
**When making C# changes, check if the Go port needs updating:**
4849

4950
| C# Area | Go Equivalent | Sync Required? |
5051
|----------|--------------|----------------|
5152
| `src/gei/Commands/` (any command) | `cmd/gei/` | **Yes** — all gei commands are ported |
53+
| `src/ado2gh/Commands/` (any command) | `cmd/ado2gh/` | **Yes** — all ado2gh commands are ported |
5254
| `GenerateScriptCommandHandler.cs` (any CLI) | `cmd/{cli}/generate_script.go` + `pkg/scriptgen/generator.go` | **Yes** — scripts must be identical |
5355
| `src/Octoshift/Services/GithubApi.cs` | `pkg/github/client.go` | **Yes** — API behavior must match |
5456
| `src/Octoshift/Services/GithubClient.cs` | `pkg/github/client.go` | **Yes** — HTTP/auth behavior must match |
57+
| `src/Octoshift/Services/AdoApi.cs` | `pkg/ado/client.go` | **Yes** — API behavior must match |
5558
| Shared commands in `src/Octoshift/Commands/` | `internal/sharedcmd/` | **Yes** — command behavior must match |
5659
| `src/Octoshift/Services/AzureApi.cs` | `pkg/storage/azure/client.go` | **Yes** — upload behavior must match |
5760
| `src/Octoshift/Services/AwsApi.cs` | `pkg/storage/aws/client.go` | **Yes** — upload behavior must match |
5861
| `src/Octoshift/Services/HttpDownloadService.cs` | `pkg/storage/ghowned/client.go` | **Yes** — multipart upload must match |
5962
| `src/Octoshift/Services/ArchiveUploader.cs` | `pkg/archive/uploader.go` | **Yes** — orchestration must match |
60-
| ADO API client (`src/Octoshift/Services/AdoApi.cs`) | Not yet ported | No |
6163
| BBS API client (`src/Octoshift/Services/BbsApi.cs`) | Not yet ported | No |
62-
| `ado2gh` commands | Not yet ported | No |
6364
| `bbs2gh` commands | Not yet ported | No |
6465

6566
**Testing:** Run `go test ./...` to verify Go changes. Run `golangci-lint run` to check for lint issues.

0 commit comments

Comments
 (0)