Add vcs remote type #162
Reference in New Issue
Block a user
Delete Branch "benvin/remote-vcs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The generic
githubremote only allowlists URL patterns: every repo needs hand-written mutable patterns for branch archives, and a moved branch re-downloads the whole archive under a ref-named key.vcspackage type for GitHub or Gitea (picked frombase_url) tag, commit and release-download paths, cached immutablearchive/refs/heads/<branch>to the commit archive, resolving the branch via the branch API with one shared, per-remote bounded lookup cache reused formutable_ttl503withRetry-Afterdocs/vcs/remote.md, a UI type def and a vcs e2e caching casepatternsis empty → cap entries (LRU or sweep expired on insert).generic.isGitHubHostand diverges:www.github.com/api.github.combase_urls are treated as Gitea and hit/api/v1/...(404 → "branch not found"), and a GitHub Enterprise host silently takes the Gitea path the same way → reuse the shared host check; reject or document non-github.com GitHub-style hosts instead of misreporting 404.stale_on_error=falsethere is no fallback → map 429/403-with-rate-limit to 503/429 and pass Retry-After through.upstream_*_timeoutoverrides → use the remote's timeouts.commits/<name>also resolves tags and shas, sorefs/heads/<tag>redirects to a tag's commit → querycommits/heads/<branch>.blocklist/patternsthrough the engine; the TTL-expiry case usesMutableTTL: 0rather than elapsed time.