feat(repo-cache): sync pre-fetched repositories without listing the organization
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 68/100
Hướng nghiên cứu
Bắt đầu bằng việc đọc repo_cache.sync_org() và phần xử lý SyncReport sau #27, sau đó kiểm tra cách generate-repo-overview lấy các bản ghi repository từ PyGithub. Thêm entry point đồng bộ hóa cho các repository đã được lấy trước, đồng thời giữ sync_org() làm wrapper ủy quyền. Công việc được xem là hoàn tất khi các đường dẫn và kết quả là xác định, việc phân loại trường hợp rỗng/thất bại được giữ nguyên, không có lần liệt kê tổ chức thứ hai và tài liệu thư viện được cập nhật.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Following #27, repo_cache.sync_org() correctly reports empty repositories separately from synchronization failures. However, it always lists the organization through gh and accepts only repository-name filters.
Consumers such as generate-repo-overview already fetch the complete repository set through PyGithub. They need to synchronize those same repositories, but using sync_org() causes a second organization listing and loses the already-fetched repository records.
Proposed change
Add a high-level synchronization API that accepts repository records supplied by the caller, for example:
sync_repositories(
*,
org: str,
repositories: Sequence[Repository],
cache_dir: Path,
workers: int = DEFAULT_SYNC_WORKERS,
progress: Callable[[str], None] | None = None,
) -> SyncReport
sync_org() should retain its current behavior and delegate to this API after listing and filtering repositories.
Acceptance criteria
- Callers can synchronize a pre-fetched sequence of
repo_cache.Repositoryrecords without another organization-list API request. - The returned
SyncReportpreserves the post-#27 empty-repository and failure classification. - Checkout paths and outcome ordering remain deterministic and compatible with
sync_org(). sync_org()behavior remains unchanged and shares the implementation.- The library documentation includes the pre-fetched-repository use case.
This would let downstream collectors fetch GitHub metadata once, synchronize checkouts once, and pass the resulting paths into their own processing workers.
- Ngôn ngữ chính
- Python
- Star
- 1
- Fork
- 5
- Merge trung bình
- 23 giờ 38 phút
- Pull request đã merge (30 ngày)
- 13
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-score/tools
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eclipse-score/tools#82 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
setup up conventional PRsĐang mởdiscussion required good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
eclipse-score/tools#8 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
perform one tool classificationĐang mởgood first issue
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
eclipse-score/tools#55 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
repo-policy-sync
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
eclipse-score/tools#42 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
repo-policy-sync
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
eclipse-score/tools#31 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eclipse-score/tools
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
NL-BioImaging/biomero#136 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Grayscale PNGs with partial transparency can turn gray pixels whiteCó thể đã có người làm @ktz03 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Add deterministic regex redaction for IDs, IBANs, and account numbers in summaries & keywordsĐang mởenhancement good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
floorianmb/tidywise#5 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
TigreGotico/phoonnx#1115 ·
Maintainer thường phản hồi trong vòng 1 ngày