Split repository migration into metadata and issue data stages, and
share pagination, deduplication, and comment and review batching between
issue and pull request imports, so fixes to that logic land in one
place.
Import order, batch sizes, and comment handling are unchanged. A unit
test covers page deduplication, per-item and repository-wide comments,
reviews, and the branch sync after pull requests.
Assisted-by: Claude Code:claude-opus-5-5
---------
Co-authored-by: silverwind <me@silverwind.io>