diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 17:13:17 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 17:13:17 +0000 |
| commit | b71111cc25b99acab786ece4607cb60e9cbebae4 (patch) | |
| tree | 71ef2669be50ccbdf61c34dff93a1c819867f83c /tests | |
| parent | e557d07ddbb1ea1a8ca6604f9ba945f359f54ce7 (diff) | |
feat(sync): extract clone URLs from PR events in purgatory
Add support for extracting clone URLs from PR/PR-Update events (kind 1618/1619)
during purgatory sync, per NIP-34 specification. This enables fetching PR commits
from URLs specified in the PR event itself, not just from repository announcement
clone URLs.
Changes:
- Add collect_pr_clone_urls() to SyncContext trait
- Implement in RealSyncContext: extract clone tags from PR events in purgatory
- Implement in MockSyncContext: configurable PR clone URLs for testing
- Update sync_identifier_next_url to merge PR clone URLs with announcement URLs
- Update get_throttled_domains_with_untried_urls with same merge logic
- Add unit tests for PR clone URL extraction and filtering
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions