Feat: Validate against a migration archive#10
Conversation
There was a problem hiding this comment.
Pull Request Overview
This pull request adds comprehensive support for GitHub migration archives to the migration validator tool, enabling enhanced three-way validation between the source repository, migration archive, and target repository. The implementation introduces new CLI options for downloading or specifying existing migration archives and updates the export and validation workflows to incorporate archive data.
- Adds new CLI options
--download-archiveand--archive-pathfor migration archive support - Implements three-way validation comparing Source API ↔ Archive ↔ Target API data
- Includes comprehensive documentation and user experience improvements
Reviewed Changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| cmd/export.go | Adds CLI flags and validation for migration archive options |
| internal/export/export.go | Updates export function to include migration archive analysis |
| internal/validator/validator.go | Extends validation logic to support three-way comparisons |
| internal/migrationarchive/migrationarchive.go | New module for archive download, extraction, and analysis |
| internal/archive/archive.go | New module for tar.gz archive extraction |
| internal/api/api.go | Extends API to support migration listing and archive downloads |
| docs/migration-archive.md | Comprehensive documentation for migration archive features |
| README.md | Updates main documentation with migration archive references |
| Test files | Comprehensive test coverage for new functionality |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 12 out of 13 changed files in this pull request and generated 5 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
additional copilot fixes
fbf659c to
9774bfa
Compare
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 12 out of 13 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Description
This pull request adds comprehensive support for GitHub migration archives to the migration validator tool, enabling enhanced three-way validation between the source repository, migration archive, and target repository. It introduces new CLI options for downloading or specifying existing migration archives, updates the export and validation workflows to incorporate archive data, and provides extensive documentation for users.
Checklist
Additional Context
Migration Archive Support and Workflow:
--download-archiveand--archive-pathtoexportcommand, allowing users to automatically download or specify an existing migration archive for enhanced validation. These options are mutually exclusive and include validation for proper usage and directory structure. [1] [2] [3] [4] [5]Documentation Enhancements:
docs/migration-archive.mdguide covering migration archive features, workflow, CLI usage, data analysis, and troubleshooting.README.mdto reference the new documentation, explain archive options, provide usage examples, and describe the enhanced export/validation output when migration archives are used. [1] [2] [3] [4] [5] [6]User Experience Improvements:
Internal Refactoring:
API and Dependency Updates:
Overall, these changes provide a robust, user-friendly way to leverage GitHub migration archives for more accurate and auditable migration validation.